travis-ci

How to avoid issues with Maven builds on Travis CI which don't occur locally?

喜欢而已 提交于 2019-12-25 10:22:07
问题 I'm regularily using Travis CI and noticed multiple issues with forked projects the last weeks when building on Travis which do not occur locally or on the Travis instance of the forked project. I made sure that I used the the same Maven version which imo is all that can be different from the Travis CI environment since both Maven and Java are portable across platforms. Travis runs Ubuntu 12.04 or 14.04 which I do as well (17.04). In detail I experienced: The failure to retrieve a SNAPSHOT

Travis Can't Find Debian Package in Custom Source Repo, Why?

隐身守侯 提交于 2019-12-25 09:33:36
问题 The instructions here appear to be logical, i've tried both with, and without docker enabled: https://docs.travis-ci.com/user/installing-dependencies/ Here is the log: Adding APT Sources (BETA) $ export DEBIAN_FRONTEND=noninteractive 0.01s$ echo "deb https://dl.bintray.com/solvingj/public-deb unstable main" | sudo tee -a /etc/apt/sources.list > /dev/null Installing APT Packages (BETA) $ export DEBIAN_FRONTEND=noninteractive 3.03s$ sudo -E apt-get -yq update &>> ~/apt-get-update.log 0.30s$

Why does Travis fail to connect use Redis cache_store when deploying to Heroku?

我与影子孤独终老i 提交于 2019-12-25 04:28:10
问题 I use Redis caching in my Rails app: config.cache_store = :redis_store, redis_url When I push my Rails app straight to Heroku, it is deployed successfully. When using Travis, the Heroku deploy step fails because the asset precompilation attempts to connect to Redis. Running: rake assets:precompile rake aborted! ArgumentError: invalid uri scheme '' /tmp/build_7c5f167bf750cb2986dbb9c3510ea11e/vendor/bundle/ruby/2.1.0/gems/redis-3.2.0/lib/redis/client.rb:390:in `_parse_options' I have tried

Travis CI cache a single file at a specified location

久未见 提交于 2019-12-25 03:16:58
问题 I am building a Ruby project on Travis CI and I use Gemfile ans Bundler to manage dependencies. My .travis.yml contains only one line about caching: cache: bundler And I rely on this in other places (Travis's default install command, cache directories, plus an extra bundle clean before uploading cache). By default, Gemfile.lock is not cached. I want to cache it to make Bundler to skip dependency resolution and use the cached Gemfile.lock . I haven't found a valid solution for this. Any ideas?

“file not found” on travis-ci when running pytest from tox using docker

穿精又带淫゛_ 提交于 2019-12-25 00:43:16
问题 I'm trying to run my tests throught travis-ci, but i receive "file not found tests" error. When i run local with same command everything is ok, but in travis i receive this error. I think its because tests folder which in root of my project located somewhere in other directory - in directory where travis copy github repo. I try this settings in tox.ini but none of whem help: commands = py.test $TRAVIS_BUILD_DIR/tests {posargs} passenv = TRAVIS_BUILD_DIR commands = py.test $TRAVIS_BUILD_DIR

How do Atom's 'spec' files work?

北战南征 提交于 2019-12-24 16:06:57
问题 I'm making a package for Atom, and Travis CI keeps telling me my build failed. Update : I created a blank spec file and now my builds are passing. You can see my package here: https://travis-ci.org/frayment/language-jazz The console is telling me: sh: line 105: ./spec: No such file or directory Missing spec folder! Please consider adding a test suite in I went looking around at Atom packages on GitHub for 'spec' files and they seem to be CoffeeScript based, but I can't understand what on

iOS UI Automation Testing in Travis CI

╄→гoц情女王★ 提交于 2019-12-24 15:33:23
问题 I have one small project which I want to test with travis (just to have that green batch on Github) which is https://github.com/SocialbitGmbH/SwiftAddressBook . It requires access to ABAddressbook which can only be given by dismissing an alert when asking for access. So I´m trying to run an UI Automation script to achieve this, which succeeds locally but fails on the remote server with the message Instruments Usage Error : Specified target process is invalid: Example/DerivedData

How to access secondary travis logs

筅森魡賤 提交于 2019-12-24 15:06:07
问题 I know the primary travis build logs are available on the web and with the logs command in the travis command line client, but I was wondering if there is a way to access other files generated as part of the build process, such as the file /home/travis/.rvm/log/1391454748_rbx-2.2.4/rubygems.install.log referenced in https://travis-ci.org/rspec/rspec-its/jobs/18148204 回答1: Those files are lost once the build is finished. If you want to read them, you should add a cat command to print out to

Travis-CI “The command ”bundle exec rake“ exited with 1.” + mystery 404 error

时间秒杀一切 提交于 2019-12-24 15:01:21
问题 bundle exec rake runs all tests perfectly fine locally . However, Travis CI keeps blowing up with Problem accessing /authentication without giving much more info to go on. Here's one of the failed builds: https://travis-ci.org/Nase00/Horizon/builds/48094102 For the life of me, I cannot figure out what is causing an authentication error when Travis tries to run bundle exec rake . Here's the project repo: https://github.com/Nase00/Horizon 回答1: I'm not sure what version of Neo4j Travis uses (

Why does Travis CI kill the process for my script?

萝らか妹 提交于 2019-12-24 14:09:07
问题 I added the following configuration to run Travis CI on the Fahrplan Android project: language: android android: components: # All the build system components should be at the latest version # - tools # - platform-tools - build-tools-21.1.1 - android-19 - sysimg-19 - add-on - extra # The libraries we can't get from Maven Central or similar - extra-android-support - extra-android-m2repository jdk: - oraclejdk7 - openjdk7 notifications: email: true before_script: - chmod +x gradlew - mv app