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
47
votes
6 answers

Travis/Jest: TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#'

All my jest typescript tests fail in my travis pipeline throwing the following error: TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#' This happened suddenly without me changing anything particular…
FabienChn
  • 938
  • 10
  • 17
45
votes
3 answers

Is it possible to set up travis to run tests for several languages?

I have a rails project and am running tests for my JavaScript test (Jasmine) through Karma .travis.yml file language: ruby rvm: - 2.0.0 script: - RAILS_ENV=test bundle exec rake --trace db:migrate test - karma start --single-run --browsers…
K-Yo
  • 1,250
  • 10
  • 14
44
votes
8 answers

Error: TSError: ⨯ Unable to compile TypeScript

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…
RicoLiu
  • 443
  • 1
  • 4
  • 8
43
votes
4 answers

Run grunt build command on Travis CI

I am using Travis CI to test and build my project and as part of it I want travis to run grunt build i have tried the following but have had no luck. script: "grunt build" script: "./node_modules/grunt build" script: "./node_modules/grunt/grunt…
user2693845
43
votes
4 answers

Using Travis-CI for client-side JavaScript libraries?

I'm not sure to use Travis-CI for my client-side JavaScript library or not, because it compiles with NodeJs on Travis-CI servers. I want to know is this a good approach to use some kind of continuous integration such as Travis-CI for client-side…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
41
votes
3 answers

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

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}" ==…
Himanshu Mishra
  • 8,510
  • 12
  • 37
  • 74
40
votes
3 answers

What is the current workflow to debug Travis builds locally?

One used to be able to download Vagrant boxes to debug Travis builds (for GitHub projects for instance). Apparently, this is no longer possible, so how do people currently debug complex Travis build chains locally?
BenC
  • 8,729
  • 3
  • 49
  • 68
38
votes
2 answers

Should I have Travis cache node_modules or $HOME/.npm

I'm quite confused about which directory is optimal for caching. I've seen both used and recommended, but no actual comparison as to why go one way or the other. For instance, the Travis blog itself recommends: cache: directories: -…
balupton
  • 47,113
  • 32
  • 131
  • 182
38
votes
2 answers

What is the best practice to use keystores to sign release version of an Android app on Travis CI?

I've been using Travis CI to build my Android app. I am signing it in the debug builds with a debug.keystore which I pushed to public repository But I want to build the release build and upload them to Google Play Store using this gradle…
tasomaniac
  • 10,234
  • 6
  • 52
  • 84
38
votes
3 answers

Travis CI with Clang 3.4 and C++11

Is it possible to get Travis CI working with Clang that is capable of C++11? (I want Clang, not GCC, I already have GCC 4.8 working in Travis CI.) It appears that the version that is there pre-installed is not C++11 capable. All my attempts at…
wilx
  • 17,697
  • 6
  • 59
  • 114
38
votes
2 answers

How to make Travis CI test package for Linux, OS X, Windows?

Is there a way to tell Travis CI (or another continuous integration service) to test the package on different operating systems? Working with the filesystem, and it would be great to double-check it's all platform-agnostic.
AJcodez
  • 31,780
  • 20
  • 84
  • 118
37
votes
4 answers

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

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,…
vucalur
  • 6,007
  • 3
  • 29
  • 46
36
votes
7 answers

How to use python 3 as a build script in non-python travis configuration?

I'm trying to use Travis CI on a C library that uses custom python3-based build scripts. When the repository gets built, it fails on ./configure because configure uses Python 3, which isn't installed by default. If I were building a Python project,…
Cel Skeggs
  • 1,827
  • 21
  • 38
36
votes
4 answers

How does travis-ci.org throttle builds?

My company is using travis-ci.org (the free version for open source software) to automatically build pull requests to our repository on github. We have about 20 people submitting Pull Requests to the same repo throughout the day and each of these…
Danny Roberts
  • 3,442
  • 23
  • 28
36
votes
3 answers

Travis-CI builds on schedule

How can I set up a build schedule for Travis-CI that is not based around pushing to GitHub? I want to run Selenium tests against my production site nightly. I'm happy with a hacky solution if official support is not present.
Synesso
  • 37,610
  • 35
  • 136
  • 207