Questions tagged [travis-ci]

For questions about the hosted continuous integration service.

Travis CI is a hosted continuous integration service for the open source community. It is integrated with GitHub and offers first class support for:

  • Android
  • C
  • C#
  • C++
  • Clojure
  • Crystal
  • D
  • Dart
  • Elixir
  • Elm
  • Erlang
  • F#
  • Generic
  • Go
  • Groovy
  • Haskell
  • Haxe
  • Java
  • JavaScript (with Node.js)
  • Julia
  • Minimal
  • Nix
  • Objective-C
  • Perl
  • Perl6
  • PHP
  • Python
  • R
  • Ruby
  • Rust
  • Scala
  • Smalltalk
  • Swift
  • Visual Basic

See the documentation for further information.

For support, please file any requests with the travis-ci GitHub issue tracker.

4084 questions
886
votes
20 answers

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

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…
nokome
  • 9,834
  • 3
  • 14
  • 15
565
votes
10 answers

How to run travis-ci locally

I'd rather not have to push every little change to .travis.yml and every little change I make to the source in order to run the build. With jenkins you can download jenkins and run locally. Does travis offer something like this? Note: I've seen…
Sam Hammamy
  • 10,819
  • 10
  • 56
  • 94
434
votes
15 answers

Trigger a Travis-CI rebuild without pushing a commit?

Using Travis-CI, is it possible to trigger a rebuild without pushing a new commit to GitHub? Use case: A build fails due to an externality. The source is actually correct. It would build OK and pass if simply re-run. For instance, an apt-get fails…
Greg Hendershott
  • 16,100
  • 6
  • 36
  • 53
198
votes
23 answers

Error: Local workspace file ('angular.json') could not be found

I have travis-ci integrated with my GitHub account (https://github.com/pradeep0601/Angular5-Router-App). When I updated @angular/cli version from 1.7.4 to 6.0.0-rc.3, the build started failing with an error: Local workspace file ('angular.json')…
Pradeep
  • 12,309
  • 3
  • 20
  • 25
129
votes
2 answers

Travis.yml ./gradlew : Permission denied

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…
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
123
votes
5 answers

Showing Travis build status in GitHub repo

I remember recently seeing the Travis build status of a pr or commit in GitHub browsing the repository (but can't find where). I'm not talking about the Travis build status images in README.md but an actual GitHub feature (green box with a friendly…
andig
  • 13,378
  • 13
  • 61
  • 98
114
votes
4 answers

Referencing current branch in github readme.md

In my github repo's readme.md file I have a Travis-CI badge. I use the following link: https://travis-ci.org/joegattnet/joegattnet_v3.png?branch=staging The obvious problem is that the branch is hardcoded. Is it possible to use some sort of…
Joe Gatt
  • 2,197
  • 3
  • 15
  • 19
105
votes
6 answers

How to set up Travis CI with multiple languages

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…
Amr Draz
  • 2,806
  • 3
  • 20
  • 26
95
votes
4 answers

Using secret api keys on travis-ci

I'd like to use travis-ci for one of my projects. The project is an API wrapper, so many of the tests rely on the use of secret API keys. To test locally, I just store them as environment variables. What's a safe way to use those keys on Travis?
user94154
  • 16,176
  • 20
  • 77
  • 116
92
votes
5 answers

How do I use Travis-CI with C# or F#

Travis CI continuous integration service officially supports many languages, but not C# or F#. Can I use it with my .net projects?
jbtule
  • 31,383
  • 12
  • 95
  • 128
91
votes
3 answers

Trying to understand what Travis CI does and when it should be used

I am very new to Git and I am planning to contribute to some open-source project on GitHub after discovering a small error in it. Upon forking it and fixing the error, I purposed a pull request and I noticed this showing up: Failed — The Travis…
90
votes
4 answers

Permission denied for build.sh file

$ ./build.sh --quiet verify /home/travis/build.sh: line 59: ./build.sh: Permission denied. The command "./build.sh --quiet verify" exited with 126.
Amit Kumar
  • 965
  • 1
  • 6
  • 11
87
votes
2 answers

What are the differences between the {before_,}{install,script} .travis.yml options?

Inside the .travis.yml configuration file what is the practical difference between before_install, install, before_script and script options? I have found no documentation explaining the differences between these options.
Daniele Orlando
  • 2,692
  • 3
  • 23
  • 26
86
votes
20 answers

The bundle UITests couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle

I can't run my test case due to this following errors : The bundle “UITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. Library not loaded: @rpath/Alamofire.framework/Alamofire. Reason:…
user2273146
  • 1,602
  • 2
  • 14
  • 27
82
votes
9 answers

Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments

With the release of Xcode 8, Apple introduced a new way of managing the signing configuration. Now you have two options Manual and Automatic. According to the WWDC 2016 Session about Code signing (WWDC 2016 - 401 - What's new in Xcode app signing),…
pablobart
  • 2,641
  • 1
  • 24
  • 22
1
2 3
99 100