Questions tagged [travis-ci]
For questions about the hosted continuous integration service.
4,088
questions
1
vote
1
answer
20
views
Permission denied when running npm test via mocha and nyc on Travis-CI
I'm setting up my server side for NodeJS application which I'm integrating with Travis-CI. I'm using Mocha and NYC to help with my tests. However, while these tests run fine locally, I'm failing the ...
1
vote
2
answers
41
views
Use Travis CI to build python distribution and upload to JFrog Artifactory
I would like to use Travis CI to build and publish distributions to Artifactory. Does anyone have an example configuration that does anything like this they could share? I'm trying to put the pieces ...
4
votes
4
answers
354
views
deploying on eks via travis ci fails
i am trying to make a cicd pipeline github->travisci->aws eks
everything works fine images are posted to dockerhub and all.but when travis is executing kubectl apply -f "the files" it ...
1
vote
1
answer
38
views
Why am I getting permission denied on my Travis CI build for rebar?
I ran a build, on Travis CI and got a permission denied error:
$ source ${TRAVIS_HOME}/otp/23.0/activate
3.01s$ ./rebar get-deps /home/travis/.travis/functions: line 355: ./rebar: Permission denied ...
0
votes
0
answers
11
views
CodeceptJs- Incorrect count when run on CI pipeline
I have integrated Codeceptjs with Travis CI. When run on local, the testcases pass successfully. However, on Travis it gives incorrect count.
In the below screenshot, the testcase failed for the first ...
0
votes
1
answer
16
views
Travis URL environment variable not working
I have setup an environment variable named MONGO_DB_URL in Travis from GitHub UI. This variable refers to my MongoDb connection string.
When the build runs, this variables returns an empty value. All ...
1
vote
1
answer
98
views
Github Actions implementation in project with test machine
Current architecture of our project is pretty simple:
Multiple Github repos merge in Master and deploy to Server.
But we want to add Testing to it. And currently I'm investigating Github Actions ...
0
votes
0
answers
38
views
How to trigger Travis CI build after a git PR merge
How to trigger a Travis CI build after a PR has been merged in github. Basically I have to run some testcases through Travis once the PR is merged in github. I browsed through docs of Travis CI, but ...
0
votes
0
answers
18
views
Github Actions equivalent of travis Tag is Present
Is there an equivalent action for Travis's 'Tag is present' condition? I have a workflow that I'm migrating and this condition is used quite often.
1
vote
0
answers
13
views
Fail a Travis build if a variable has degraded since the previous build
Is it possible to have a Travis job calculate some metric (such as the number of npm audit problems, number of failed tests, number of lint warnings etc) and fail the job if the value is worse than ...
0
votes
1
answer
47
views
Travis CI deploy to S3 bucket using the "glob" option uploads all repo files
I'm using Travis CI's deploy feature to upload all png files that contain screenshot- to S3 using the following configuration:
deploy:
on:
all_branches: true
provider: s3
access_key_id:
...
1
vote
0
answers
57
views
"failed: could not connect to server: Connection refused" in TravisCI
I use TravisCI to test pull requests, branches and mergers on GitHub, everything works fine until the last update (March 1, 2022), after that update I keep getting this error:
DBIx::Class::Storage::...
0
votes
1
answer
31
views
Building a django app in Travis CI not successful
I am trying to integrate Travis CI with Django application. But I am getting the following error
Successfully built 9b60427cea1c
Successfully tagged 3_recipe_app_app:latest
WARNING: Image for service ...
1
vote
1
answer
48
views
Update PostgreSQL version to 13 in TravisCI
I have some issues with the TravisCI platform when I try to test the code when Pull Requesting some changes. It works fine so far, but now I get this warning in the build-run log when I run the ...
0
votes
0
answers
21
views
Issue defining multiple variables per Item
Hey all I've included our Travis config below. We're trying to build each QF_ARCH (OSX, x86, and x86_64) with and without steamlib. There should be six builds in the matrix, but it's only attempting ...
0
votes
1
answer
46
views
Why does my environement variables doesnt work with Travis?
I am trying to build a CI with Travis for my docker app. In my docker compose I import a file called ".env". This file is gitignored so Travis cant use it. To fix the problem, I create the ...
0
votes
2
answers
72
views
Travis CI runs only on Pull Requests and in Expected for Branch
I have two builds at the same time when doing PR.
According to docs, that could be turned off via web interface
I turned that off (want to have only PR build) and also added only to .travis.yml, but ...
0
votes
0
answers
26
views
How do i convert this travis.yml file in gthubactions workflow?
if: branch = master OR branch = develop OR tag IS present OR type == pull_request
stages:
test
name: build
if: ( branch = master OR branch = develop OR tag IS present ) AND type != pull_request
jobs:
...
1
vote
1
answer
638
views
EACCES: permission denied, scandir '/root/.npm/_logs' error after NodeJS Upgrade
I upgraded one of my NodeJS services from 12 to 16 and then I started to get this error on Travis build.
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
...
0
votes
0
answers
30
views
Telegram bot with traivs & heroku deploy never ends
So, I'm pretty new to this telegram bot things.
I'm building a simple telegram bot just for fun and I wanted to use heroku and travis.
What is happening is that after I push to github the deploy ...
1
vote
0
answers
26
views
unable to install newer opam package on travis ci image
I am using travis-ci to automate unit testing for my ocaml project. I am unable to complete my build so I am testing my build locally with the same docker travis-ci image. One of the opam packages ...
1
vote
0
answers
27
views
How to view Netlify unique deploy url in circleci directly from Github Pull request?
I want to view the unique deployment URL of a Netlify build directly from my Github PR.
I currently use circelci for my continuous integration software. The current process is: click the circleci ...
0
votes
1
answer
154
views
The SECRET_KEY setting must not be empty. Django docker
i tried to find solution on stack and other websites but without result. Im fighting with django for some days.
I got my django app dockerized and it works fine. I'm using .env file to serve secret ...
0
votes
0
answers
6
views
Projects with low Build Activity - Survey
Dear Developers of project microsoft/vscode,
We are conducting a study on CI metrics and we noticed that in your project, something peculiar happened.
During the period you are using Travis CI, the ...
0
votes
0
answers
41
views
specifying build matrix for Travis-CI
I am using Travis-CI and need to move to a scenario with multiple builds (using a build matrix). I'm having a hard time finding direct documentation on this but I have been using the examples here. ...
0
votes
1
answer
38
views
Travis CI won't build though I push my app to GitHub
I want Travis CI to build my app for test when I push my app to GitHub.
I think there is cooperation between Travis CI and GitHub.
But it didn't work.
docker-compose.yml here.
version: '3'
volumes:
...
0
votes
0
answers
19
views
work on organization project in Travis CL
I want to ask if 5 persons are working on the repository in GitHub, for using the repo in Travis CL does everyone has to make an account to work on the repo in the Travis CL or only one account is ...
0
votes
0
answers
36
views
Unable to get Travis Ci to run a test, keep getting [DEPRECATED] errors when it runs bundle
Hey guys I am trying to get Travis CI to test my code but I just can't seem to get it to work... I've been banging my head for hours and I keep getting the error below:
3.72s$ bundle install --jobs=3 -...
0
votes
0
answers
14
views
Not able to access the organization repo which is public, in traviscl.com
I am using Travis cl.com, and I when synchronize with my Github account it was not able to pick the organization repo in which I working on and which is public also did a review and add option,
there ...
1
vote
0
answers
49
views
Travis-CI python3.6 Tox launching virtualenv error
We are using tox for py36 test environment setup through travis-ci, the tests start breaking in 2021-10-23.
The error that we are getting is:
$ tox
GLOB sdist-make: /home/travis/build/apache/incubator-...
0
votes
1
answer
36
views
Deploy code from same branch to multiple azure web apps using Travis CI
I have a repository with a C# .NET Core backend and a React frontend. For deployment, I would like for both to be deployed to Azure Web Apps. So far, I have set up two web apps: one for the frontend ...
1
vote
1
answer
806
views
Angular test fail to run on Travis with error "Found 1 load error"
Why my travis conf fail to execute Angular test?
.travis.yml
language: node_js
node_js:
- "16"
addons:
chrome: stable
cache:
directories:
- ./node_modules
- ./.angular
...
2
votes
0
answers
452
views
AssertionError: Activity never becomes requested state "[DESTROYED, STARTED, RESUMED, CREATED]" (last lifecycle transition = "PRE_ON_CREATE")
I recently updated the Travis CI configuration for my Android application project (Android Gradle Plugin 7.0.3, targetSdk 30, JVM 11) to use the new command line tools. I have chosen system-images;...
0
votes
0
answers
18
views
How to re-run Travis build for pull requests using API?
I'm trying to trigger a Travis build to re-run on a branch using the v3 API. This PR branch is from a fork of the original repo that is hooked up to Travis (i.e. not a branch that is already in the ...
2
votes
1
answer
108
views
I'm getting the Travis CI Build Error "Module not found" and I'm not sure why
I'm getting "Module not found" errors for my Travis CI build. I'm not sure exactly why but here's a look at my initial PyTest file:
import requests
url_ddg = "https://api.duckduckgo....
0
votes
0
answers
31
views
Email verification error & Auto-build is not triggered
I bound Travis-ci to my GitHub account and now I am getting an error: “Please check your email and confirm your account. If you need to generate a new confirmation email, please resend your ...
0
votes
0
answers
27
views
Changing Github build status image URL after PR merge?
We have an open source project which will use Travis CI for continuous integration.
I've added the .travis.yml file, and added a build status image to the README of the project. This all works just ...
0
votes
1
answer
93
views
Travis CI error while devtools::chech() doesn't
Here is the package in github.
As you can see in travis.yml, warnings are not treated as errors. When I do the check() in console, there are no errors. Here is the result:
0 errors ✓ | 4 warnings x | ...
0
votes
1
answer
30
views
Travis does not push docker image to hub
As in title, Travis does not want to push docker image to docker hub after successfully test passing? What is wrong? I have already set env variabales DOCKER_PASSWORD and DOCKER_USERNAME. Any ideas?
...
0
votes
1
answer
94
views
Oneliner for failing a bash command if its status is within a certain range
Is there a nice way of calling a command in bash and failing if its return code was within a certain range/met a certain condition?
My use-case:
I have CI set up on Travis, and want to add a yarn ...
1
vote
0
answers
63
views
How to get travis-ci to respect .Rbuildignore when building R package?
I've hooked up a github repo containing an R package to Travis CI and the package seems to build fine. But, when travis builds it on github the contents of the .Rbuildignore file are not respected. ...
0
votes
0
answers
33
views
running commands on Travis CI before server is fully setup
I have the following .travis.yml file:
language: php
matrix:
include:
- php: 5.3
dist: precise
before_install:
- wget --no-check-certificate https://curl.se/ca/cacert.pem
- echo &...
0
votes
0
answers
22
views
Install HDF5 on a Travis Windows instance
I need to silently install HDF5 libs on a travis windows instance. But the process hangs as msiexec command without giving any error message, and gets killed after 10 minutes.
I tried the same command ...
0
votes
1
answer
53
views
Error in Couldn't find a package.json file during vuepress-Travis CI construction
What can I do?
Here is the code for the part where the problem occurs
error Couldn't find a package.json file in "/home/travis/build/comter1/document"
info Visit https://yarnpkg.com/en/docs/...
0
votes
1
answer
41
views
How to import private key using gpg2 during travis build?
I'm trying to upgrade the Travis CI build for one of my projects to move from the "xenial" dist to the "bionic" dist, and I'm having trouble trying to import a signing key during ...
-1
votes
1
answer
31
views
Migrating from .travis CI to GITHUB action
migrating to the GitHub action from Travis CI,
there is a line
'git diff --name-only "$TRAVIS_COMMIT_RANGE"'
but it is for Travis and while running on GitHub action not getting the value of ...
1
vote
0
answers
271
views
Travis Build is Stuck on Building fresh packages step
My build for a react-nextjs application was working properly till a few days ago. But for some reason, deployments are stuck on the Building fresh packages step. We use yarn.
And I checked the logs ...
1
vote
1
answer
75
views
Pass Mongodb Atlas Operator env vars from travis to kubernetes deploy.sh
I am trying to adapt the quickstart guide for Mongo Atlas Operator here Atlas Operator Quickstart to use secure env variables set in TravisCI.
I want to put the quickstart scripts into my deploy.sh, ...
0
votes
0
answers
130
views
is anyone know 502 bad gateway error solution in beanstalk?
FROM node:alpine
WORKDIR '/app'
COPY ./package.json ./
RUN npm install
COPY . .
EXPOSE 80
CMD ["npm", "run", "start"]
"above is docker file"
"below is ...
0
votes
1
answer
17
views
No output on Travis CI for system tests
I have some weird behavior on a Rails 6.0.4 application when running system tests: when running rails test:system on my machine I correctly see which error is failing, but in Travis I only see the ...