travis-ci

Can Travis CI cache docker images?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 15:21:12
问题 Is it possible to add a setting to cache my docker image anywhere in the travis configuration ? Mine is a bigger docker image and it takes a while for it to download. Any suggestions ? 回答1: See Caching Docker Images on Build #5358 for the answer(s). For Docker 1.12 available now on Travis, it is recommended to manually cache the images. For the Docker 1.13, you could use its --cache-from when it is on Travis. 回答2: Simplest solution today (October 2019) is to add the following to .travis.yml :

How to install (complex) dependencies in Travis-CI?

喜夏-厌秋 提交于 2019-12-08 11:42:20
问题 I would like to setup a documentation CI build, i.e. a build that requires nothing more than ASCIIDOC, TeX, XSLT (Saxon) et cetera. Now I am aware of [1] which states that regular apt commands can be used for hopefully installing any of this dependencies. But how do do so? It appears cumbersome to change .travis.yml, push a build and start again if there was a typo or other error in the install command. Thus I was looking into 'travis console' to (somehow) interactively test the setup

Build failing in Travis due to multidex/android bug?

心不动则不痛 提交于 2019-12-08 06:05:42
问题 We are not using build tools "26.0.2" in our project. In fact, doing a grep -RF "26.0.2" . | grep -v android-profile on our project directory does not return anything except for ./CBSandbox/build/intermediates/multi-dex/release/components.flags:-libraryjars /home/gabor/Android/Sdk/build-tools/26.0.2/lib/shrinkedAndroid.jar ./CBSandbox/build/intermediates/multi-dex/debug/components.flags:-libraryjars /home/gabor/Android/Sdk/build-tools/26.0.2/lib/shrinkedAndroid.jar That in itself is bogus

Travis CI build doesn't find Android Constraint Layout

这一生的挚爱 提交于 2019-12-08 03:28:02
问题 I am using Travis CI to build my Android app, but I am dealing with build failure due to com.android.support.constraint:constraint-layout . I saw other questions but they didn't worked for me. My .travis.yml file: language: android android: components: - tools - tools #Running this twice get's the latest build tools (https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI) - platform-tools - android-24 - build-tools-25.0.0 - extra - extra-google-google_play_services - extra

Is it possible to set conditional environment variables in travis?

跟風遠走 提交于 2019-12-08 03:24:16
问题 I am running on travis on 5 versions of nodeJS, .travis.yml is .... language: node_js node_js: - 5.0 - 4.0 - 0.12.7 - 0.10.40 - 0.10.36 before_install: - npm install -g grunt-cli script: - npm run travis I want to set a travis environment variable for the run on nodeJS 5.0 only something like this ... language: node_js node_js: - 5.0 - env: POST_TO_COVERALLS=true - 4.0 - 0.12.7 - 0.10.40 - 0.10.36 before_install: - npm install -g grunt-cli script: - npm run travis but this is invalid ...

“…/auto/List/Util/Util.so: undefined symbol: PL_stack_sp at …/XSLoader.pm” only when running test suite with CGI::Test _and_ on Travis CI

♀尐吖头ヾ 提交于 2019-12-08 02:56:42
问题 I have a Perl module called CGI::Github::Webhook whose test suite works fine on Travis CI so far on the branch master. But since it's a module for writing CGI scripts, I wanted to test it with CGI::Test as this would be closer to real-life scenarios. But every Travis CI run in the branch cgi-test failed so far. Except for the runs with Perl 5.24 and above, every failed run contained these lines, just with different Perl version numbers in the paths: Attempt to reload List/Util.pm aborted.

Problems with travis for C#

依然范特西╮ 提交于 2019-12-08 02:49:44
问题 Travis CI now supports C# (in beta). After try 8 different methods, I can't find a solution to my problem. I have an ASP MVC project, travis use mono and I know that I can't build in travis this kind of project script: - xbuild project.sln Ok no problem with this but I want to pass my tests, the best solution that I find is: language: csharp solution: OptionType.sln install: - sudo apt-get install mono-devel mono-gmcs nunit-console script: - nunit-console MSPSpain.Tests/bin/Debug/MSPSpain

Android O Gradle build fails with travis ci

≡放荡痞女 提交于 2019-12-08 01:10:45
问题 I'm trying to use Travis CI for my Android Project but my Builds constantly failing but works on local build. I am using Android Studio Preview 3 and gradle 3 alpha 3. I am getting this error below. Could not find com.android.tools.build:gradle:3.0.0-alpha3. Here is my build log My Travis Config file My Project gradle file 回答1: I'm getting an Access denied error to your build log, and I didn't use it, but I'll try to answer you. As announced here: The Android Gradle Plugin 3.0.0-alpha3 was

travis-ci how to push to master branch

只愿长相守 提交于 2019-12-08 00:23:44
问题 I have a travis-ci project connected to Github that tries to update content in the Github repo and push them back to Github, both master and gh-page branches. However, although my travis-ci log files says everything is ok, I only see the gh-pages branch updated, but not the master branch. My travis.yml file is language: node_js node_js: stable language: python python: 3.6 # Travis-CI Caching cache: directories: - node_modules - pip # S: Build Lifecycle install: - npm install - npm install -g

Running Redis on Travis CI

只愿长相守 提交于 2019-12-07 20:09:43
问题 I just included a Redis Store in my Express application and got it to work. I wanted to include this Redis Store in Travis CI for my code to keep working there. I read in the Travis Documentation that it is possible to start Redis, with the factory settings. In my project, I don't use the factory settings, I wrote my own redis.conf file which specifies the port and the password. So I added the following line to my .travis.yml file: services: - redis-server --port 6380 --requirepass 'secret'