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

How to configure Travis-CI to build pull requests & merges to master w/o redundancy

To put it in "BDD" terms: Background: Given I'm contributing to a GH repo When I create a pull request Then Travis should build the latest commit When I push to an existing pull request Then Travis should build the latest commit When I merge…
Brian Gerstle
  • 3,643
  • 3
  • 22
  • 22
78
votes
11 answers

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /app/node_modules/@babel/helper-compilation-targets/package.json

I'm having trouble building my nuxt images in a travis CI pipeline. My local environment is ubuntu 18.04 - docker version 19.03.11 docker-compose version 1.24.1 I'm able to build and run my images locally but on the travis CI I get the following…
Simon
  • 1,280
  • 3
  • 10
  • 21
75
votes
3 answers

How to use multiline command in 'script:' with YAML?

I have a repository that uses Travis CI, and in the .travis.yml there I have this line: script: - vim -Nu <(cat <<-EOF set nocompatible | filetype off EOF ) -c 'Script' > /dev/null Sadly this doesn't work, as this is transformed into a…
hgiesel
  • 5,430
  • 2
  • 29
  • 56
74
votes
5 answers

How do you remove a Github repository for Travis CI tests?

I created a Travis CI test using a Github repository. I can't seem to find any information about how to remove it from the Travis CI test page. Is this at all possible?
user1715156
  • 1,471
  • 2
  • 11
  • 7
70
votes
1 answer

How do I get Travis' build working directory in .travis.yml?

When working with the .travis.yml, is there an environment variable that contains the name of the current build directory in Travis-CI? Looking through the docs here I don't see one.
emmby
  • 99,783
  • 65
  • 191
  • 249
68
votes
8 answers

How to find the current git branch in detached HEAD state

I can find the current git branch name by doing either of these: git branch | awk '/^\*/ { print $2 }' git describe --contains --all HEAD But when in a detached HEAD state, such as in the post build phase in a Jenkins maven build (or in a Travis…
neu242
  • 15,796
  • 20
  • 79
  • 114
64
votes
4 answers

How to reproduce a travis-ci build environment for debugging

I am seeing a build failure on travis-ci, which I cannot reproduce on my local machine. Are there instructions somewhere for setting up a VM that is identical to the travis-ci linux build environment? I'm glad to have travis-ci already reveal a new…
David Roundy
  • 1,706
  • 2
  • 14
  • 20
63
votes
3 answers

Suppressing GPG signing for Maven-based continuous integration builds (Travis CI)

I'm using Travis-CI to provide continuous integration builds for a few Java open source projects I'm working on. Normally this works smoothly, but I have a problem when the POM specifies GPG signing, e.g.
mikera
  • 105,238
  • 25
  • 256
  • 415
61
votes
7 answers

Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

I have a spring boot project here: https://github.com/jcasbin/jcasbin-springboot-plugin. I encountered the following error in Travis CI: shell 3.43s$ ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
58
votes
15 answers

Treating warnings as errors because process.env.CI = true. Failed to compile

I am working on a react-weather application for self learning purpose. Deployed the same in gh-pages. URL https://davisraimon.github.io/react-weather/ Repo https://github.com/davisraimon/react-weather When tried to integrate my application with…
55
votes
5 answers

How to specify a build folder in Travis?

I have a github repository user/repo but the real project is in a subfolder user/repo/project/build.sbt What should I write in the .travis.yml to make Travis ignore the top folder and work only in the project folder? Inspired by this I tried the…
Крис
  • 1,190
  • 2
  • 11
  • 17
54
votes
10 answers

How to publish artifacts in Travis CI?

I would like to use Travis CI for my open-source project. The issue that Travis doesn't provide any ways to publish produced artifacts (though, they have this in their future plans). What are workarounds to publish/upload artifacts somewhere? I'm…
eigenein
  • 2,083
  • 3
  • 25
  • 43
50
votes
7 answers

What does "upload-pack: not our ref" mean, when fetching git refs via --tags?

In one of my projects, the Travis builds are failing before any of my build-system or code can be reached, as soon as my build-script attempts to fetch all of the Git tags with git fetch --tags: `` git fetch --tags --verbose POST git-upload-pack…
ELLIOTTCABLE
  • 17,185
  • 12
  • 62
  • 78
48
votes
8 answers

Travis Could not authorize build request

I'm getting this error for each and every project in my Github organization. Could not authorize build request myorg/myproject I searched everywhere but couldn't find any solutions or what causes this. How to troubleshoot this issue/integration?
sithumc
  • 3,254
  • 8
  • 27
  • 46
48
votes
6 answers

How to fix a permission denied (publickey) error for a git submodule update in the Github Travis CI build?

I cannot update the git submodule, with the error: $ git submodule init Submodule 'build/html' (git@github.com:quadroid/clonejs.git) registered for path 'build/html' ... $ git submodule update Cloning into 'build/html'... Warning: Permanently added…
Quadroid
  • 825
  • 2
  • 9
  • 15