Questions tagged [travis-ci]
For questions about the hosted continuous integration service.
4,087
questions
0
votes
0
answers
7
views
How to use NSS 3.30 by chromedriver on linux Travis-ci?
I want use new format of chromedriver (115+) on Travis-ci, but I have this error:
/home/travis/build/xxxx/xxxx/src/test/resources/drivers/chromedriver-linux64/chromedriver:
/usr/lib/x86_64-linux-gnu/...
-2
votes
0
answers
18
views
the relationship among dockerization, continuous integration service and cloud computing platforms [closed]
I am wondering how continuous integration service like travis CI is contributing to deployment platforms like aws via dockerization? basically what the normal process is? is it possible to skip the ...
0
votes
0
answers
16
views
Skip Travis stage if PR does not contain changes to certain path
I am trying to write if condition to a Travis stage so it will be executed only if the PR contains files from a certain path. The following does not work for me and I guess the syntax is wrong.
jobs:...
0
votes
1
answer
34
views
Ruby 3.2.2 YJIT on Travis CI
I'm trying to build Ruby 3.2.2 with YJIT support on Travis CI, but Travis doesn't seem to allow this.
I'm using the following inside of the .travis.yml:
language: ruby
dist: focal
rvm:
- 3.2.2
env:
...
0
votes
1
answer
163
views
ChromeDriver version do not support the Google Chrome version
i am using following tech stack while automating web specific test cases:
1. WebDriverIO for web automation
2. Travis as a CI tool
3. I am using `selenium-standalone` as a `service` - This is ...
0
votes
0
answers
17
views
Why does my Travis CI test fail while my local tests pass due to swapped latlng and lnglat data in the Travis test database?
I have encountered a perplexing issue with my continuous integration setup using Travis CI. When running my tests locally, everything works perfectly fine and all tests pass without any issues. ...
0
votes
0
answers
115
views
Docker: The command '/bin/sh -c configure.sh' returned a non-zero code: 22
I have a Java application and it uses liberty server. My Dockerfile has suddenly stopped working in Travis. Although, it builds locally but it's not working in my Travis pipeline.
Dockerfile
FROM ...
0
votes
1
answer
102
views
Why does jekyll-archives not work on Github pages with Travis CI?
I am using Travis to deploy on Github pages. I am also using jekyll-archives in my project. My setup works very well locally but no archive pages are generated on github pages. I have also used jekyll-...
0
votes
0
answers
83
views
g++ complains that ISO C++ 2011 standard is not enabled whereas I use -std=c++17
I have an issue with CMake and g++ in my Travis-Ci Ubuntu environment.
Compilation failed with the following error message:
In file included from /usr/include/c++/10/cinttypes:35,
...
0
votes
0
answers
6
views
Reading Travis build notifications with Python
I've built a Python script that gets all scans all of our Jira boards each morning to see if there were any releases the previous day, then posts that information to a Google sheet. There's one ...
0
votes
0
answers
41
views
Failed to set up Travis for my Django project
Setting up Travis configuration for my Django project I encountered an error indicating the SQLite version is not supported. To address this I added the sqlite3 service to travis.yml:
services:
- ...
2
votes
1
answer
340
views
Error: resource not found ({} ) when running travis cli command
I am getting this message whenever I try to run a travis command.
This is the minimal reproducible example:
$ travis version
1.11.1
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-...
2
votes
1
answer
49
views
Travis build fails with error LOAD DATA LOCAL INFILE file request rejected due to restrictions on access
UPD: The question is different from MySQL: Enable LOAD DATA LOCAL INFILE
That question is related to LOCAL run and nothing to do with travis build, locally, using that options everything works like a ...
0
votes
0
answers
52
views
Travis CI - Set variable based on the value of another one
I have a GitHub project using Travis for the CI, configured through a travis.yml file.
I want to conditionally run some jobs depending on the kind of build, in particular, I want to include additional ...
1
vote
0
answers
18
views
Travis CI did not push image to docker
Hi am new to Docker and Travis, following on from a Udemy course we are wrote a travis file that build successfully but no images were pushed to docker hub.
The correct environment variables were ...
1
vote
1
answer
71
views
Failed Travis CI Deploy to ElasticBeanstalk
I am trying to deploy an app AWS Beanstalk using Travis. Each time I used I get an error message saying failed to deploy and access_key_id.
Below is my travis.yml file for the build:
sudo: required
...
0
votes
0
answers
18
views
In Travis, is it possible to mark a staged as "Cancelled" instead of "Failed" when running a bash script?
There does exist a "Cancelled" state, which you can invoke by clicking on small x next to the job. This is how a cancelled job looks:
Is it possible to enter this cancelled state when ...
0
votes
0
answers
189
views
Travis CI Isn't allowing me to build
so I'm taking a course in DevOps with udacity right now, and I'm faced with a problem using Travis CI. My tutor wasn't able to help me.
The repo i'm tryin to build is https://github.com/AmrEbnNashaat/...
0
votes
0
answers
67
views
How to deploy a MacOS app on Github using Travis CI
I'm trying all day to make this work. I have a Python script on my Windows PC, and I can build an .exe from that using PyInstaller just fine. I don't own a Mac, but I saw online that I can ...
0
votes
0
answers
51
views
Travis Running Gem Install Bundler Without Version
Travis is running the the command below and throwing an error:
$ gem install bundler
217ERROR: Error installing bundler:
218 The last version of bundler (>= 0) to support your Ruby & RubyGems ...
0
votes
0
answers
17
views
Stages not following conditions in Travis
My pipeline in Travis CI is executing update stage when I'm just pushing my code to the repository.
The expected behaviour when I'm pushing code to my repository is to execute the pipeline like ...
4
votes
1
answer
624
views
Not able to run builds on travis after using SPM plugin
Getting following error when running builds having any SPM plugin like SwiftGenPlugin:
The following build commands failed:
Validate plug-in “SwiftGenPlugin” in package “swiftgenplugin”
Build ...
0
votes
1
answer
21
views
Deploy phase of a stage not firing
There has to be something I’m missing, but I just can’t see it. I have a staged build. The deploy stage is firing as expected, as are all of its phases, but not the deploy phase. Any idea why?
stages:
...
0
votes
1
answer
109
views
Hexo blog build error and the chic theme could not be found
When I push my hexo blog to GitHub, it doesn't work.
When I check the build message, the build with Jekyll show github-pages
227|Error: The chic theme could not be found
Of course, my blog contains ...
0
votes
0
answers
30
views
Upload an asset folder to GitHub release using travis
I use travis to automate build and deploy to GitHub release page. Now the structure is:
Assets:
file1
file2
But I want to it like this:
Assets:
folder1
file1
file2
The travis script is (Omit ...
8
votes
1
answer
18k
views
Why is NPM's npm config set always-auth not a valid option? NPM 8+
Specifically ->
'npm config set always-auth true' in my travis.yml file under before_install: section gives the error in Travis: "npm ERR! always-auth is not a valid npm option"
I have ...
0
votes
1
answer
126
views
Travis CI is not updating git submodule
Travis CI is not updating the git submodule and it is throwing
ERROR: Permission to appdev/frontend.git denied to deploy key
fatal: Could not read from remote repository.Please make sure you have the ...
0
votes
1
answer
36
views
Create Travis NAT IPs as AWS VPC Security Group IP List
I'd like to create a Security Group rule in AWS to allow incoming SSH connections from Travis (https://docs.travis-ci.com/user/ip-addresses/) to be able to control deployment.
AWS has a limit on the ...
1
vote
1
answer
35
views
Travis unable to start mongodb instance
I am using Travis CI/CD in my repository. When my build starts on Travis. Getting below error:
sudo systemctl start mongodb
Failed to start mongodb.service: Unit mongodb.service not found.
Here is my ...
0
votes
1
answer
1k
views
Docker compose read connection reset by peer error on pipeline
when running a docker compose in a pipeline I'm getting this error when the tests on the pipleine are making use of mycontainer's API.
panic: Get "http://localhost:8080/api/admin/folder": ...
10
votes
2
answers
2k
views
Check if we're in a GitHub Action / Travis CI / Circle CI etc. testing environment
I would like to programmatically determine if a particular Python script is run a testing environment such as
GitHub action
Travis CI
Circle CI
etc. I realize that this will require some heuristics, ...
0
votes
1
answer
45
views
travis ci do nothing
I am new on Travis CI and I am trying to deploy my hobby project to AWS by Travis but in my first commit nothing happened here is my .travis.yml:
sudo: required
language: generic
services:
- docker
...
0
votes
1
answer
30
views
How do I actually use the encrypted travis variable
I have successfully encrypted my variable with travis using, travis encrypt "secret_token" --add, I see it on the .travis.yml
Now I would like to use this encrypted variable in a bash script ...
0
votes
0
answers
69
views
Travis: Can't import PyQt5 but python3-pyqt5 is installed
I assume my problem depends on the fact that I don't totally understand how TravisCI work.
The Python unittests on Travis raising an ImportError because of import PyQt5.
So I was modifying the .travis....
0
votes
0
answers
132
views
travis-ci deployment to aws eks access denied
I am doing the same CI/CD pipeline but I cant figure out why my command kubectl apply -f k8s isnt working this is the reoccurring error
"An error occurred (AccessDenied) when calling the ...
0
votes
0
answers
90
views
how to get git remote push branch name dynamically in script/Travis?
I am having a shell script basically whenever a user is making any changes in git file travis will start running and in Travis YAML file I have specified shell script path and shell script basically ...
0
votes
1
answer
84
views
Fast_finish option to finish execution of scripts in Travis
I’m traying to finish the execution of the remaining scripts in a Travis pipeline as soon as one of them fails in any stage. So that if any of those scripts fails in the stage, no more scripts are ...
0
votes
1
answer
68
views
Is it possible to get git committer and author email with Travis API v3?
In Travis API v2 I would get committer_email and author_email as described in the docs. However, in v3 I only get the name, as In this example:
$ curl -H "Authorization: token $TRAVIS_API_TOKEN&...
0
votes
1
answer
102
views
Peer dependency issue in React on Travis CI server
When attempting to build an application on a Travis CI server, an error returns stating a peer dependency issue as stated below:
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15&...
-1
votes
1
answer
48
views
Integrating postman collection tests in travis
I have a travis integration in my project with build language as python. I want to integrate postman test which requires Node installation. Should i create a separate build for this? Is there a way to ...
1
vote
0
answers
88
views
Trouble understanding Travis CI build error and how to correct
all of a sudden I am getting this error through TravisCI and I have no idea what to do to fix it. I see that it mentions that - python setup.py egg_info did not run successfully. However, it's my ...
0
votes
1
answer
209
views
How can I avoid getting a .travis.yml file automatically created inside my ansible role?
I have created several roles with ansible-galaxy init my_role and after a while I realized a .travis.yml file was created automatically for a basic syntax testing. I am not planning to use Travis CI, ...
1
vote
1
answer
553
views
Pass environment variable to PyTest based on Github commit message
In .yml we can do
jobs:
build-conda:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
to skip a build if commit message contains [skip ci]. Likewise, I'd ...
0
votes
1
answer
651
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
223
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
629
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 ...
2
votes
1
answer
318
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
1
answer
111
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
2
answers
666
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
57
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.