Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Jay Wong
    My python program was terminated due to MemoryError. Is there anyway to request more memory to build my project?
    Dariusz Rumiński
    if you pay for your travis account, contact support
    hello, how can I create travis-ci server in local area network?
    and does travis-ci server open source?
    Paul S.
    Does anyone experience issues fetching artifacts from maven central on .com right now?..
    Francisco Albert Albusac
    Guys, I'm trying to use travis with docker-compose to run mysql. This container is publishing the port 3306 ,however I have this from travis:
    Error starting userland proxy: listen tcp bind: address already in use
    ERROR: Encountered errors while bringing up the project.
    The command "docker-compose up" failed and exited with 1 during .
    I was wondering if there is any work around for this.....
    Francisco Albert Albusac
    Also, can I set an environmental variable from a different place of "env"?, I would like to set a variable as result of a command
    Hi, i'm trying to set up my react app to deploy from heroku but i'm having a couple of issues. First how does the deployment process work. I push from my local environment to git hub repo, then build starts, then deploys to heroku? Also, I am passing the test but fail deploy because it can't find that app. I have tried using the repo name and also the heroku auto generated name of the app but both throw the error. Has anyone had this happen before?
    Ok, nvm it works now. I guess there is a bit of a delay between pushing up to the repo and travis.
    Clayton Long
    It doesn't look like Travis is bootstrapping Java 8 on new builds. I received the following error. Is there a new bug here? I am on GitHub. So, perhaps the outage had an impact on my builds? I just figured once builds started happening again then everything would just resume.
    $ export JAVA_HOME=~/oraclejdk8
    $ export PATH="$JAVA_HOME/bin:$PATH"
    $ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
    install-jdk.sh 2019-05-02
    Expected feature release number in range of 9 to 13, but got: 8
    The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 3 during .
    language: java
    sudo: false
      - develop
      - /^release\/v.*$/
      - /^hotfix\/v.*$/
        - $HOME/.m2
    - oraclejdk8
    Clayton Long
    Looks like it's just not working with TravisCI anymore. Man, I've been using TravisCI for years with GitHub. But no reported issues + an incredibly vague TravisCI issue and no word on updates. CircleCI's config is a little more cumbersome. But if it gets me building again...
    Gonzalo Casas
    Hi folks, anyone knows if it's possible to switch to Linux containers when using docker in Windows builds?
    Gonzalo Casas
    ..it looks like it's not really possible at the moment.
    Andrea Stevanato
    Hi guys, I have some problem to deploy after build. I used travis sshkey generate for generate the sshkey and then encrypt the private key and put as env variable under deploy: api_key: secure: $GITHUB_TOKEN. The repository is private and the error that i get is the following: /home/travis/.rvm/gems/ruby-2.4.5/gems/octokit-4.6.2/lib/octokit/response/raise_error.rb:16:in `on_complete': GET https://api.github.com/user: 401 - Bad credentials // See: https://developer.github.com/v3 (Octokit::Unauthorized). What I did not understand?
    Győri Sándor
    Hi there! Do matrix jobs work in the same workspace?
    Győri Sándor
    If so, I'd like to combine two separate .lcov coverage reports. both produced in separate jobs. I have the script that combines them commited into the repo. I just want to run it after both completes successfully and upload it. Is there a hook for this?
    Dariusz Rumiński
    @AlexAegis , no, each job on given build run on separated machine

    hi, i'm attempting to expose an environment variable during a node(js) script and then check it in a subsequent script step

    here's my config

    language: node_js
        - gh-pages
        - /.*/
      - '8'
      - node generateData.js
      - if [ "$TRAVIS_COMMIT_BUILD" = "true" ]; then chmod +x .travis/push.sh  ; else echo "do build? $TRAVIS_COMMIT_BUILD" ; fi
      - if [ "$TRAVIS_COMMIT_BUILD" = "true" ]; then ./.travis/push.sh  ; fi

    so, in the node generateData.js line, i'm calling process.env.COMMIT_BUILD = "true", but the debug statement i added (echo "do build? $TRAVIS_COMMIT_BUILD") always comes up empty

    anyone have an idea how to get this exposed, or would it be possible to set an env var from the exit code of the node script?

    I decided to just write out a temp file that's ignored by git and cat that into the env var
    Turing Zhu
    I encountered the following error. Who can tell me what happened and how can I fix it?
    Deploying application
    /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-pages-1.10.11/lib/dpl/provider/pages.rb:141:in `mkdir': File exists @ dir_s_mkdir - /var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/d20190622-3759-1lk0umr/work (Errno::EEXIST)
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-pages-1.10.11/lib/dpl/provider/pages.rb:141:in `github_pull_or_init'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-pages-1.10.11/lib/dpl/provider/pages.rb:195:in `block in push_app'
        from /Users/travis/.rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/tmpdir.rb:89:in `mktmpdir'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-pages-1.10.11/lib/dpl/provider/pages.rb:190:in `push_app'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/lib/dpl/provider.rb:199:in `block in deploy'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/lib/dpl/cli.rb:41:in `fold'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/lib/dpl/provider.rb:199:in `deploy'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/lib/dpl/cli.rb:32:in `run'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/lib/dpl/cli.rb:7:in `run'
        from /Users/travis/.rvm/gems/ruby-2.4.3/gems/dpl-1.10.11/bin/dpl:5:in `<top (required)>'
        from /Users/travis/.rvm/gems/ruby-2.4.3/bin/dpl:23:in `load'
        from /Users/travis/.rvm/gems/ruby-2.4.3/bin/dpl:23:in `<main>'
    failed to deploy
    hey guys, is this way possible?
    or there is another right way
    Anuoluwapo Akinseye
    hi everyone, I got this error message while travis-ci is running my test.
    snapshot of error
    I need guide(s) on how to get it fix. thanks
    Gytis Šk.
    Hello, I am running build on php7.4snapshot, but it's the only version that's failing due to ParseError (which is supposed to be caught by catch block). Anyone dealt with similar issues ?
    John Zabroski
    Is there a way to benchmark a Travis-CI build, similar to how TeamCity works? I joined a project, FluentMigrator, as a co-maintainer, and am trying to wrap my head around Travis CI for the first time.... it doesnt seem to have the nice performance benchmarking feature of TeamCity where I can see how long each sub-step took.
    I can kind of see with my own eyeballs where the problem is right now, but the build timed out after 50 minutes, so i am assuming there may be multiple inefficiencies.
    Setting up mono-jay ( ...
    Setting up mono-csharp-shell ( ...
    Setting up monodoc-base ( ...
    Setting up referenceassemblies-pcl (2014.04.14-1xamarin5+ubuntu1604b1) ...
    Setting up mono-roslyn ( ...
    Mono precompiling /usr/lib/mono/4.5/csc.exe for amd64 (trying with LLVM, this might take a few minutes)...
    Mono precompiling /usr/lib/mono/4.5/vbc.exe for amd64 (trying with LLVM, this might take a few minutes)...
    Mono precompiling /usr/lib/mono/4.5/VBCSCompiler.exe for amd64 (trying with LLVM, this might take a few minutes)...
    Mono precompiling /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll for amd64 (trying with LLVM, this might take a few minutes)...
    John Zabroski

    I also now see the following :

    C# support for Travis-CI is community maintained.
    Please open any issues at https://travis-ci.community/c/languages/37-category and cc @joshua-anderson @akoeplinger @nterry

    Is it possible the C# toolchain has some regression causing issues?

    I Found this reply by @joshua-anderson https://travis-ci.community/t/net-core-sdk-installed-on-every-build/2836/3

    Travis-CI spins up a fresh virtual machine on every build, so we have to re-install .Net Core every time.
    Short of pre-installing C# on the virtual machine image, which isn’t possible right now (Travis-CI tries to minimize the amount of software preinstalled on the image), I don’t think there’s much we can do.

    John Zabroski
    Updated that thread with a quesiton as to whether tunneling my build through docker would speed things up https://travis-ci.community/t/net-core-sdk-installed-on-every-build/2836/11?u=jzabroski
    John Zabroski

    Would anyone be able to explain to me why some of my builds take 6 minutes on Travis CI and others time out at 50 minutes? Is it just "noisy neighbors"?

    I read https://docs.travis-ci.com/user/common-build-problems/#timeouts-installing-dependencies but the fact the timeout occurs at 50 minutes is just strange to me.

    https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received discusses using travis_wait, but what is frustrating for me is it is not clear WHY the build timed out.

    Separately, the 50 minute thing is mentioned as a "common problem" here: https://docs.travis-ci.com/user/customizing-the-build#build-timeouts but it's not mentioned as a common build problem in https://docs.travis-ci.com/user/common-build-problems/

    Hi! Can anyone tell me why this build didn't deploy to GitHub pages? I think it might be something about on.branch, but that doesn't seem like it would be necessary here. https://travis-ci.org/RustPython/RustPython/jobs/564569924
    Jonathan Leitschuh
    Yes, but only if you use encrypted variables. See the Travis CI documentation for more details
    Will Carhart
    Hi everyone, new to Travis. I'm trying to automate testing/deployment via PRs to my repo. Can anyone answer this question: https://stackoverflow.com/questions/57387227/how-to-run-tests-on-pr-deploy-on-merge-with-travis-ci
    Keenan Brock

    Hi all,
    I'm looking for a way to reduce build resources:

    When testing a rails gem against pg, sqlite, and mysql, people typically setup an env switch:

      - DB=sqlite
      - DB=mysql
      - DB=postgresql
      - mysql
      - postgresql

    Is there a way to limit a service to an environment?
    e.g.: only run mysql when DB=mysql and only run postgres when DB=postgresql?

    thanks all

    Keenan Brock
    oh well, if I figure it out, I'll try and update the online docs.
    have a great day all
    Thibault Brocherieux
    Hey, Im' having issue with travis, I'm trying to deploy angular project on Google Flex App Engine.
    I'm building prod build using angular ng build directive, then deploying, at this point the Dockerfile used to deploy on gcloud doesn't work because it can't find prod build, I've used debug prompt, production build exist and is where it should be. I'm currently asking myself if this comes from travis.
    dist: trusty
    sudo: false
    language: node_js
    - '8'
      - "./my-app/node_modules"
    - cd my-app
    - npm install
    - npm run lint
    - ng build --prod --output-path ../nginx/www
    - cd nginx
      provider: gae
      keyfile: "../client-secret.json"
      project: "my-app"
      config: "app.yml"
        branch: master

    Docker is exiting here because it can't find www folder

    ADD www /usr/share/nginx/www/

    Thibault Brocherieux
    Capture d’écran 2019-09-23 à 14.56.35.png
    Thibault Brocherieux

    To give some more insights :

    Below is the output given from commands run in travis.yml script

    $ cd nginx
    The command "cd nginx" exited with 0.
    0.01s$ ls
    The command "ls" exited with 0.

    It would seem that www folder exist.

    Now inside Dockerfile, I'm copying current build context

    COPY . /tmp/build/
    RUN ls /tmp/build/

    The problem is that current context doesn't include

    Step 6/9 : COPY . /tmp/build/
    Step 7/9 : RUN ls /tmp/build/
    Thibault Brocherieux
    Woud it be originated that file context given to deploy isn't updated or something? I can't find doc page explaining it.
    Thibault Brocherieux
    FYI : I found the issue. By default travis stash all the changes -> https://docs.travis-ci.com/user/deployment#uploading-files-and-skip_cleanup . Just needed to add inside the deploy
      skip_cleanup: true
    How can I skip after_success stage in matrix builds but one?
    Basically, I want to collect test coverage data for only one build in matrix
    language: java
      - openjdk11
      - openjdk-ea
        - jdk: openjdk-ea
      - chmod +x gradlew
      - ./gradlew check --info
      bash <(curl -s https://codecov.io/bash) -cF server
    someone know if the PyPI deployment is available on Windows build environment?
    Joan Massich
    is there a way to force homebrew addon to use sources?
    in other words i would like to replace these 2 lines with the addon
        brew install hdf5 libmatio;
        brew reinstall -s libmatio;
    Daniel Ruf
    Hi, it seems macOS builds are not running, they are not even scheduled.