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
35
votes
3 answers

How make travis-ci execute for some branch?

I have a few branches in my repo and I have the .travis.yml file in a branch A (master branch does not have this file). But travis-CI is not starting the build for branch A. What do I need to do to run travis for this branch? When I create a Pull…
Artur Sh
  • 351
  • 1
  • 3
  • 3
35
votes
3 answers

Using Travis CI for testing on UNIX shell scripts

Background: I have been using Travis CI for my PHP projects and I really like how they give you a link to a picture that shows the status of the current build of your project. I am currently making a lot of tools using UNIX shell scripting and would…
Dodzi Dzakuma
  • 1,406
  • 2
  • 21
  • 39
35
votes
7 answers

Remove Travis CI old builds

This is my first day using Travis CI. I made some mistakes, I've tried removing and adding the repository again, but Travis CI build history is still there, with broken links for old commits. Any chance to remove those old builds?
gremo
  • 47,186
  • 75
  • 257
  • 421
35
votes
3 answers

How do detect if Travis-Ci or not

I need a way to determine if the person calling the function is Travis-CI or not. If it is Travis-CI, I do not want to start a session here. Right now, I have my tests script create a file called test.txt and then look for it. protected function…
chriscct7
  • 527
  • 5
  • 11
33
votes
5 answers

How to publish to Github Pages from Travis CI?

We are compiling Doxygen docs on the travis-ci server and want to push them onto our gh-pages branch. How do I handle the authorization for git push? Does someone have an example for using encrypted variables in travis-ci? Should I go for https…
Stasik
  • 2,568
  • 1
  • 25
  • 44
33
votes
2 answers

Travis special requirements for each python version

I need unittest2 and importlib for python 2.6 that is not required for other python versions that travis tests against. Is there a way to tell Travis-CI to have different requirements.txt files for each python version?
fakedrake
  • 6,528
  • 8
  • 41
  • 64
31
votes
4 answers

Travis CI Android Tests: no connected devices

I am trying to set up Travis for Android. Running the build seems to work so far, but when it comes to the tests, it complains about "No connected devices!" :app:connectedAndroidTestDebug FAILED FAILURE: Build failed with an exception. * What went…
Terry
  • 14,529
  • 13
  • 63
  • 88
31
votes
3 answers

How to deploy to github with file pattern on travis?

I have created a simple travis configuration which packages an app and tries to deploy the archive file to github. The problem is, I would like to have the version number part of the file name, so i require to use a pattern for the filename. I…
Herbert Poul
  • 4,512
  • 2
  • 31
  • 48
30
votes
4 answers

How to run Tox with Travis-CI

How do you test different Python versions with Tox from within Travis-CI? I have a tox.ini: [tox] envlist = py{27,33,34,35} recreate = True [testenv] basepython = py27: python2.7 py33: python3.3 py34: python3.4 py35: python3.5 deps…
Cerin
  • 60,957
  • 96
  • 316
  • 522
30
votes
1 answer

Travis CI - Using repository environment variables in .travis.yml

I'm looking to declare environment variables in my Travis CI repository settings and use them in my .travis.yml file to deploy an application and post a build notification in Slack. I've set environment variables in my Travis CI repository settings…
Simon Finney
  • 469
  • 1
  • 5
  • 10
30
votes
3 answers

How to read test result reports on Travis CI?

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…
Caren
  • 1,358
  • 2
  • 13
  • 22
30
votes
2 answers

Committing via travis ci failing

I am trying to use grunt-gh-pages extension to commit to my gh-branch. It works fine locally but when I use TRAVIS-CI it fails. It gives the following error message - Warning: fatal: remote error: You can't push to…
tusharmath
  • 10,622
  • 12
  • 56
  • 83
29
votes
1 answer

Building an R package on Travis, how not to treat warnings as errors?

I'm building an R package on Travis to share the integration status with users of the package. I have no errors but 8 warnings and I would like to ignore them for the moment. But travis considered the build a failure and returns the message on the…
Paul Rougieux
  • 10,289
  • 4
  • 68
  • 110
29
votes
8 answers

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

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…
ericteubert
  • 4,531
  • 3
  • 31
  • 35
29
votes
6 answers

Travis CI for private repositories

Is there any way to setup Travis CI on our own machines for private repositories and have it connect to our own git server?
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106