travis-ci

Travis CI environment variables with Gradle properties

為{幸葍}努か 提交于 2019-12-03 16:10:50
问题 How can I use travis-ci env variables as Gradle's properties? I locally have my gradle.properties under the gradle path having: sonatypeRepo = abcd Which is used in my build.gradle : uploadArchives { //more repository(url: sonatypeRepo) { // more } //more } Of course locally it works. In travis I have added the variable under settings so I see the build log: Setting environment variables from repository settings $ export sonatypeRepo=[secure] And it fails like: FAILURE: Build failed with an

Triggering builds of dependent projects in Travis CI

孤街醉人 提交于 2019-12-03 16:06:53
问题 We have our single page javascript app in one repository and our backend server in another. Is there any way for a passing build on the backend server to trigger a build of the single page app? We don't want to combine them into a single repository, but we do want to make sure that changes to one don't break the other. 回答1: Yes, it is possible to trigger another Travis job after a first one succeeds. You can use the trigger-travis.sh script. The script's documentation tells how to use it --

How to install Google Cloud SDK on Travis?

南楼画角 提交于 2019-12-03 13:33:17
I have tried to install Google Cloud SDK on Travis with the following .travis.yml sudo: required language: go - curl https://sdk.cloud.google.com | bash; My attempt is inspired by this guide from Google: https://cloud.google.com/solutions/continuous-delivery-with-travis-ci Unfortunately, I get this output on Travis: $ curl https://sdk.cloud.google.com | bash; % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 421 0 421 0 0 17820 0 --:--:-- --:--:-- --:--:-- 60142 Downloading Google Cloud SDK install script: https://dl.google.com/dl/cloudsdk

How can I update full description on Docker Hub automatically?

人盡茶涼 提交于 2019-12-03 12:13:00
I'm using Travis CI for building docker images from Dockerfiles and then pushing them to the Docker Hub on success. I've created an MD file describing the image and how to use it. I want to have the same description on the Docker Hub in the full description section. As I may update the description in the future, I want to have Travis CI automatically update the description based on the MD file in the repository with the new image. Anyone knows how to do this? Since the Docker Hub does not expose any API , the only way to send stuff to the Docker Hub remotely is with the docker push command,

rake db:migration not working on travis-ci build

我的未来我决定 提交于 2019-12-03 11:55:58
问题 I'm trying to build my Ruby on Rails project from github on Travis-CI, but I 'm running into a migration problem. It runs a rake task for migration, but it complains about the same migration step after that. It follows my .travis.yml file: language: ruby rvm: - 1.9.2 before_script: - "rake db:migrate RAILS_ENV=test" And here's the build output: 1Using worker: ruby4.worker.travis-ci.org:travis-ruby-3 2 3 4 5$ cd ~/builds 6 7 8$ git clone --depth=100 --quiet git://github.com/rafaelportela

Error: TSError: ⨯ Unable to compile TypeScript

懵懂的女人 提交于 2019-12-03 11:16:59
I am facing the problem: My Project is built on Angular4 with typescript, e2e testing with protractor & karma. Travis-ci has this error: [03:34:54] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript Cannot find type definition file for 'jasmine'. (2688) Cannot find type definition file for 'node'. (2688) e2e/app.e2e-spec.ts (1,32): Cannot find module './app.po'. (2307) e2e/app.e2e-spec.ts (4,1): Cannot find name 'describe'. (2304) e2e/app.e2e-spec.ts (7,3): Cannot find name 'beforeEach'. (2304) e2e/app.e2e-spec.ts (11,3): Cannot find name 'it'. (2304) e2e/app.e2e-spec.ts (13,5):

“ERROR: Unexpected action: build” when building a project with Swift 3 and Cocoapods on Travis-CI

自古美人都是妖i 提交于 2019-12-03 10:20:59
Evening/morning/afternoon all, Been hitting my head over this for a bit now and couldn't find anything online about this so my best bet is here. When Travis-CI builds my project I get the following error: xctool -workspace Project.xcworkspace -scheme ProjectTests build test ERROR: Unexpected action: build and here is my config: language: objective-c xcode_workspace: Project.xcworkspace xcode_scheme: ProjectTests osx_image: xcode8.2 Perhaps I missed something in the tutorial? I got a little lost on the pods dependency section but I believe I did it right. This happens with a new scheme

TravisCI: Run after_success on a specific branch

柔情痞子 提交于 2019-12-03 09:59:11
I would like to know how to run an after_success script only for a specific branch. I am using a custom script to deploy the app after build passes. I would only like to run this when on prod branch. So far, I have tried the following: #1 after_success: - # some deployment script on: prod #2 branches: only: - prod after_success: - # some deployment script #3 after_success: branches: only: - prod - # some deployment script Any suggestions? I solved it by writing a simple script using TRAVIS_BRANCH environment variable and executed the script in after_success .travis.yml after_success: - .

TravisCI: How to allow failures for environment variable

爱⌒轻易说出口 提交于 2019-12-03 09:31:07
How to allow failures for builds having specific environment variable value? For example: .travis.yml: env: - TEST_GROUP=Smoke - TEST_GROUP=other # How to allow failures for this variable? matrix: allow_failures: - TEST_GROUP=other # This does not work You need to explicitly reference env in the allow_failures section: matrix: allow_failures: - env: TEST_GROUP=other @roidrage's answer works for me. When using multiple env variables in a single matrix dimension, env variables have to be combined like this: env: - TEST_GROUP=Smoke TEST_ENV=airport - TEST_GROUP=other TEST_ENV=outside matrix:

How to read test result reports on Travis CI?

蹲街弑〆低调 提交于 2019-12-03 08:19:52
问题 For my builds on Travis, I want to be able to read the test results when there are failing tests to see the stacktrace of those failing tests. Currently, these reports are stored locally on the machine that runs the tests, so I am not able to access the local files where the reports are. I also don't want to archive these files through Amazon S3 because that seems like way too much of a hassle. Something like : How to get surefire reports form Travis-CI build? seems like it could work, but