travis-ci

How to set up Travis CI with multiple languages

雨燕双飞 提交于 2019-11-28 02:52:19
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 my project uses java 8 I tried this answer for python using language: node_js node_js: - "0.10" java:

Class 'PHPUnit_Framework_TestCase' not found

这一生的挚爱 提交于 2019-11-27 23:47:54
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? 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_Framework_TestCase')) { class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); } The old

Travis CI: FATAL: role does not exist

我的未来我决定 提交于 2019-11-27 23:17:42
问题 I'm trying to get my application working w/ Travis CI but I keep getting: FATAL: role "skateparks" does not exist . Any ideas on what I could be doing wrong? I've followed their documentation. 回答1: For the record, put something like this in your .travis.yml : before_script: - psql -c "CREATE USER skateparks WITH PASSWORD 'skateparks';" -U postgres 回答2: Your database.yml has this: development: adapter: postgresql encoding: utf8 database: skateparks_development username: skateparks password:

How to fix the YAML syntax error: did not find expected '-' indicator while parsing a block?

白昼怎懂夜的黑 提交于 2019-11-27 23:12:38
问题 I have some code written in my .travis.yml written for a Python library. Using lint.travis-ci.org, I came to know that there is some indentation problem in my YAML file. Here is the part which the error points to install: - if [[ "${TEST_PY3}" == "false" ]]; then pip install Cython; python setup.py build; # To build networkx-metis mkdir core; # For the installation of networkx core cd core; git clone https://github.com/orkohunter/networkx.git; cd networkx/; git checkout addons; python setup

Android tests fail on Travis with ShellCommandUnresponsiveException

别等时光非礼了梦想. 提交于 2019-11-27 20:35:46
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.ddmlib.InstallException at com.android.ddmlib.Device.installPackages(Device.java:927) at com.android

how to work around Travis CIs 4MB output limit?

不问归期 提交于 2019-11-27 20:25:49
问题 I have a Travis CI build that produces more than 4MB of output which exceeds Travis CIs limit. I have tried sending output to /dev/null, but Travis also fails if no output is seen for 10 minutes How can I workaround these constraints? 回答1: The following script sends some dummy output to keep the build alive but also records the build output to a file and displays a tail of the output if the build returns an error: #!/bin/bash # Abort on Error set -e export PING_SLEEP=30s export WORKDIR="$( cd

Travis manually confirm next stage

99封情书 提交于 2019-11-27 19:30:01
问题 I have a stage test and production . I would like to manually confirm the deployment to production. Is there way to achieve this? 回答1: You can make use of Conditional Deployments. This allows you to specify whether you push to production or test . Combine it with e.g. a check-live-deployment.sh -script and differentiate between branches and/or tagged commits. For example: #!/bin/bash set -e contains() { if [[ $TRAVIS_TAG = *"-live"* ]] then #"-live" is in $TRAVIS_TAG echo "true" else #"-live"

Travis.yml ./gradlew : Permission denied

回眸只為那壹抹淺笑 提交于 2019-11-27 16:54:19
Using Travis CI for an existing Android project calling $ ./gradlew build connectedCheck I get this error: /home/travis/build.sh: line 45: ./gradlew: Permission denied The command "./gradlew build connectedCheck" failed and exited with 126 during . It depends by the exec-permission to your unix gradlew script. It can be fixed using the command: git update-index --chmod=+x gradlew A little desciption to understand the problem. First of all you can check your permissions using: git ls-tree HEAD You will see: 100644 blob xxxxxxxxxxx gradlew As you can see the file has 644 permission. Fix it by

How to add SSH Key in Travis CI?

故事扮演 提交于 2019-11-27 16:16:16
问题 In Travis Doc there is tab "SSH Key" in Settings, but not in my account. I need to add SSH Key to clone submodules on GitHub. My Account: Travis Doc: 回答1: This feature is only available for private repositories currently. For public repositories, you shouldn't need them to be private Git URLs (assuming they're on GitHub), so changing the URLs to use public clone URLs should do the trick. 回答2: Using SSH keys is only available for private repositories on travis-ci.com (paid plans). With the

com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) - 5.0] FAILED

孤街醉人 提交于 2019-11-27 13:44:53
i have try my best to test my android project with gradle on, but failed. can you help me with it?Thank you. This is my project: https://github.com/SnowdreamFramework/android-log and i provide my error log with the attachment. [0K$ echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a Android 5.0 is a basic Android platform. Do you wish to create a custom hardware profile [no]Created AVD 'test' based on Android 5.0, ARM (armeabi-v7a) processor, with the following hardware config: hw.cpu.model=cortex-a8 hw.lcd.density=240 hw.ramSize=512 vm.heapSize=48 travis_time:end