travis-ci

Travis reports odd message of corrupted Gemfile.lock

烈酒焚心 提交于 2019-11-27 06:08:59
问题 Im using bundler to install stuff and since I have added Gemfile.lock , travis started to complain with: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'echoe' Of course, everything works locally. It also works using DeployBot . I even installed docker ubuntu and tried, still ok. My Gemfile.lock is not corrupt. Same versions of ruby and bundler is used. What is going on? Update This is something related to bundler version. Im using 1.11.0, but got

How to reproduce a travis-ci build environment for debugging

不羁岁月 提交于 2019-11-27 05:07:00
问题 I am seeing a build failure on travis-ci, which I cannot reproduce on my local machine. Are there instructions somewhere for setting up a VM that is identical to the travis-ci linux build environment? I'm glad to have travis-ci already reveal a new bug, but less excited to debug it by sending in commits that add debug code. 回答1: For container-based builds, there are now instructions on how to setup a docker image locally. Unfortunately, quite a few steps are still manual. Here are the

How to set up Travis CI with multiple languages

谁说胖子不能爱 提交于 2019-11-27 05:00:05
问题 My project uses both nodejs and java I tried starting off with a node_js build then installing java (since this is an npm module) but the scripts to install java failed, plus I don't think there's a need to install it when there is a build with java that already exists. should I start off with a java build then install node? I'm trying this language: java - oraclejdk8 language: node_js node_js: - "0.10" which ignores the first 2 lines it seems and builds a node_js build which has java 7 and

Travis CI failed because cannot accept license Constrain Layout

此生再无相见时 提交于 2019-11-27 01:10:51
Before i write this question, i already search same question about this, they did export license because still use alpha version of constrain layout. But now android already release stable version of constrain layout. I tried a lot of setup but still failed.. my latest .travis.yml language: android jdk: oraclejdk8 android: components: - platform-tools - tools # to get the new `repository-11.xml` - tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943) - build-tools-25.0.0 - android-25 # Additional components - extra-google-google_play_services - extra-google

How to make travis execute Angular tests on Chrome (“Please set env variable CHROME_BIN”)

£可爱£侵袭症+ 提交于 2019-11-27 00:40:12
问题 I'm working on a sample Angular project generated by yeoman. I am able to run karma tests locally (I set system variable CHROME_BIN to point to chromium binary, but this could have been done in more elegant way. Just a quick work-around.) However, when attempting to produce a successful build with travis, I get following error: ERROR [launcher]: Cannot start Chrome Can not find the binary google-chrome Please set env variable CHROME_BIN I've followed the steps described here (basically using

How to find the current git branch in detached HEAD state

柔情痞子 提交于 2019-11-27 00:20:47
问题 I can find the current git branch name by doing either of these: git branch | awk '/^\*/ { print $2 }' git describe --contains --all HEAD But when in a detached HEAD state, such as in the post build phase in a Jenkins maven build (or in a Travis git fetch), these commands doesn't work. My current working solution is this: git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD It displays any branch name that has the last commit on its HEAD tip. This

Android tests fail on Travis with ShellCommandUnresponsiveException

不问归期 提交于 2019-11-26 22:53:42
问题 We're seeing a lot of build failures on the first and even second execution of pull requests for our Android project on Travis. However, if we restart the exact same build enough times it eventually passes. Here's what the error looks like on failures: :onebusaway-android:connectedAndroidTest 09:48:14 E/Device: Error during shell execution: null Unable to install /home/travis/build/OneBusAway/onebusaway-android/onebusaway-android/build/outputs/apk/onebusaway-android-debug.apk com.android

Class 'PHPUnit_Framework_TestCase' not found

我怕爱的太早我们不能终老 提交于 2019-11-26 21:35:29
问题 This error occurs on my public build project: https://travis-ci.org/byjg/authuser/jobs/211336643 I ran locally using php 7.0 and php 7.1 on my Ubuntu and this problem does not occur. Travis runs successful on PHP 5.6 Could you help me? 回答1: There is a difference between namespace structure between PHPUnit <6 and PHPUnit 6. You may consider the following solution for backward compatibility: // backward compatibility if (!class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit

How can I customize / override the “git clone” step in Travis CI?

流过昼夜 提交于 2019-11-26 20:54:52
问题 On the install step, Travis CI clones the repo, which looks similar to this: git clone --depth=50 --branch=master https://github.com/user/repo.git user/repo How can I customize / override this? Background: I am using tag based deploys. The way Travis checks out tagged builds ( --branch=<tagname> ), the git repository is in a detached state without access to branches. However, for deployment I need to know on which branch I am. My solution is to do a "normal" clone and then switch to the

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

爱⌒轻易说出口 提交于 2019-11-26 18:55:54
问题 My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 sudo -H pip install setuptools wheel virtualenv --upgrade But when I do the same on a Travis CI Trusty Beta VM: - sudo apt-get install python python-dev --force-yes --assume-yes -