travis-ci

How do I match the right Cabal spec with each resolver in my Travis CI builds?

亡梦爱人 提交于 2019-12-10 10:51:05
问题 After updating my Haskell package's .cabal file to Cabal 2.2, most of my Travis CI builds with resolvers older than LTS 12.9 fail with: This package description follows version 2.2 of the Cabal specification. This tool only supports up to version XX.XX.XX. where the version varies depending on the resolver specified in my .travis.yaml. It seems that for each resolver I need to specify a different Cabal version In fact, because of Cabal spec changes, I appear to need a different .cabal file

Travis-CI cannot find relative module require

左心房为你撑大大i 提交于 2019-12-10 10:02:46
问题 I have a Travis build job that is running mocha tests, however the build is failing with the error: Error: Cannot find module './sources/reddit' My file tree is the following feeds/ sources/ Reddit.js Feeds.js app.js Within Feeds.js I am doing var https = require('https'), q = require('q'), Reddit = require('./sources/reddit'); However it seems to be flagging up an error loading it up. 回答1: This error is because I was referencing ./sources/reddit with reddit as lowercase, on the filesystem

Error in Travis trying to submit app to Google's Play Store

☆樱花仙子☆ 提交于 2019-12-10 09:55:56
问题 I started by looking into a couple of Gists I found on Github: https://gist.github.com/lpetre/87a5196d14cf4484f1f2 And this works great on my laptop, however I'm trying to set up Travis-CI to automatically build the release APK and submit it to the Play Store. The issue that I'm encountering now is on the Travis side, in that I cannot use pip to install the google_api_python_client. upon that call, I get the following: Installing collected packages: google-api-python-client, httplib2 Running

During gradle test show standard out and err only for failed tests

泪湿孤枕 提交于 2019-12-10 04:22:54
问题 I have a large test suite running on travis-ci, which has a textual output. I would like to configure gradle in a way that only for failed tests, the standard output and standard error streams are displayed. For all other tests which have been executed correctly, this should not happen so that the console is not polluted with that noise. I am aware how to enable or disable the standard output/error logging, but I am unsure how to make this dependend on the test result. 回答1: This can be

travis-ci setup releases with --github-token

大兔子大兔子 提交于 2019-12-10 03:00:58
问题 I am having problems using setup releases with a github token. I like travis-ci but I am not willing to hand out my github password - I need to use the token and I read the documentation as this should be possible this way. Unfortunately it still asks for pasword: $ travis login --github-token XXXXXXXXX Successfully logged in as ligi! $ travis whoami You are ligi (ligi) $ travis setup releases Detected repository as ligi/gobandroid, is this correct? |yes| Username: 回答1: The Travis CI CLI will

What should a Python project structure look like for Travis CI to find and run tests?

天涯浪子 提交于 2019-12-09 18:11:43
问题 I currently have a project with the following .travis.yml file: language: python install: "pip install tox" script: "tox" Locally, tox properly executes and runs 35 tests, but on Travis CI, it runs 0 tests . More details: https://travis-ci.org/neverendingqs/pyiterable/builds/78954867 I also tried other ways, including: language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "3.5.0b3" - "3.5-dev" - "nightly" # also fails with just `nosetest` and no `install` step install: "pip

Travis-CI - How is time limit counted for builds? (Sum of all jobs or time of longest one)?

萝らか妹 提交于 2019-12-09 04:52:02
问题 Let's say i have repo which for each push (build) starts 4 jobs (diffrent environment/compilers etc.). There is time limit for builds - 50min. Is it counted as sum of times of all builds (like in left panel), or is it independant for each job? Example: 4 builds, each taking 20minute - will it timeout becouse it will be counter as 80min or will it be ok and count as 20min (time of longest job)? 回答1: The Travis CI documentation is pretty clear about this. A build consists of one or many jobs.

Xcode 6.4 Swift Unit Test Won't Compile: “GPUImage.h not found” “failed to import bridging header”

非 Y 不嫁゛ 提交于 2019-12-08 21:21:32
问题 My Xcode project builds and works fine . It has Swift and Objective-C code. It has GPUImage installed. I added a unit test to it and now it will no longer compile: 'GPUImage.h' file not found Failed to import bridging header Here are the workarounds I have found and tried: Setting the Product Module Name to match my project: Didn't work http://codesheriff.blogspot.co.il/2015/05/importing-swift-code-from-objective-c.html Ensured my build phases matched : Didnt work Expanding the header search

Travis-CI Android tests with Gradle keep timing out

[亡魂溺海] 提交于 2019-12-08 19:48:08
问题 I'm trying to build & test my project on Travis CI. It keeps showing me same repetitive output every time on all my repositories. Here is my travis.yml https://github.com/carts-uiet/cartsbusboarding/blob/master/.travis.yml language: android android: components: # Uncomment the lines below if you want to # use the latest revision of Android SDK Tools # - platform-tools # - tools # The BuildTools version used by your project - build-tools-21.0.0 # The SDK version used to compile your project -

Read versionName from build.gradle in bash

折月煮酒 提交于 2019-12-08 16:47:28
问题 Is there a way to read the value versionName from the build.gradle file of an Android project to use it in bash? More precisely: How can I read this value from the file and use it in a Travis-CI script? I'll use it like # ANDROID_VERSION=??? export GIT_TAG=build-$ANDROID_VERSION I set up a Travis-CI like described in this post https://stackoverflow.com/a/28230711/1700776. My build.gradle: http://pastebin.com/uiJ0LCSk 回答1: Expanding on Khozzy's answer, to retrieve versionName of your Android