Questions tagged [travis-ci-api]

Tag for questions related to the Travis Continuous Integration API. The API can be called to launch builds and start new testing jobs.

the Travis Continuous Integration API is a RESTful API that implements functionalities such as launching builds and starting, stoping new testing jobs.

18 questions
3
votes
1 answer

Travis CI - conditional 'before_deploy' script per each deploy provider

I am trying to deploy with Travis CI to 2 different providers(npm, firebase), my .travis.yml file looks something like this: branches: only: - master - /v\d+\.\d+\.\d+/ install: - yarn before_deploy: # first provider - yarn…
1
vote
0 answers

How to keep the local server running and run test on Travis CI

Trying to run some automated tests in TravisCI pipeline. To run these tests, I need to keep my local server running on Travis. And then run the automated test on that local server. My automated tests are present in directory - sanity-tests. Note- …
Vishu
  • 1,105
  • 3
  • 10
  • 19
1
vote
1 answer

Getting the Travis CI build status of a GitHub commit

Question How would one get the build status of Travis CI of a particular GitHub commit from the of any arbitrary open source project? Example For example, how would an arbitrary GitHub user (with a Travis account) query the passing/failed build…
a.t.
  • 2,002
  • 3
  • 26
  • 66
1
vote
1 answer

How to disable Travis CI pipeline for draft or WIP pull requests on GitHub?

I would like to avoid overwhelming the build. Has anybody done it before?
TheGabornator
  • 523
  • 1
  • 7
  • 20
1
vote
0 answers

Build test failing on Travis

We've set up Travis on our GitHub repo to test every pull request made, one test out of 73 is failing with a status code of 500 instead of having 200. The rest of the tests in the same directory are passing. Though all tests are passing locally, the…
1
vote
0 answers

Download raw build logs from all builds on a specific branch

Is there an easy way to download the Travis CI build logs for all builds of a specific branch? As mentioned here, it is possible to get a specific log file. This can be used in a bash loop over job ids, for JOBID in $(COMMAND-HERE) do wget…
jmlarson
  • 837
  • 8
  • 31
1
vote
0 answers

Set TravisCI to publish package only when push is on master

I'm looking for a way to make an autodeploy of NuGet packages after the compilation. So far I've successfully set the CI/CD on TravisCI but I want to publish the NuGet package only from the master branch and not from the pull request branch. This is…
1
vote
1 answer

restarting builds with travis ci api

I can restart builds via the CLI by doing travis show branch -r user/project to get the build # and then by doing travis restart 1 -r user/project (where 1 is the build). My question is... how can I do this via the Travis CI v3 API?
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
1 answer

How can I authenticate using a github token in Travis-CI APIv3?

In the Travis-CI APIs v2 and v2.1 there was an option to generate a Travis API token using a github API token. However, this Travis token is incompatible with Travis APIv3 and will give a 403 error. Is there a way to: a) generate a Travis-CI APIv3…
Kai Arakawa
  • 193
  • 1
  • 1
  • 14
0
votes
1 answer

Has any one setup done local travis ci process

I have created a local travis-build container, can any one help me to do the following Once the developer check-in code travis build should trigger. if the build is success code should get check-in. if the build fails code shouldn't…
0
votes
1 answer

Get job log files of repository using Travis CI API

I am currently looking for ways to obtain all job log files(such as https://api.travis-ci.org/v3/job/6073028/log.txt) from public repositories (such as apache/commons-math) in Travis CI using Travis CI API. I would like to know if it is possible,…
0
votes
1 answer

Compiling with multiple scala versions

I wanted to run travis build against two Scala versions (2.12, 2.13) i.e crossCompilation, so I created two jobs for it, as logs were huge and there is a log limit of 4 MB in travis. So I created two jobs for it.Here is my travis.yml file. I am not…
Aamir
  • 2,380
  • 3
  • 24
  • 54
0
votes
1 answer

Create Travis v3 API token for GitHub app

So, the issue is the following: I need to access Travis CI API to get the build status for our organization repositories. The issue here is that using personal GitHub token to generate Travis API token is an overall bad practice, cause the user can…
xSAVIKx
  • 463
  • 4
  • 12
0
votes
1 answer

Build failed for ASP.NET Core 3.1 in Travis CI

I cannot build my ASP.NET 1 Core 3.1 application in Travis CI and after several unsuccessfull attempts I think it’s time to figure out with the community what’s the problem. Build:…
0
votes
2 answers

How to have dynamic version name at run time when deploying google app engine in Travis CI?

I am studying to automate the build and deployment of my google app engine application in Travis, so far it allows me to have static or predefined version name during deployment in .travis.yml. Is there any way to make it dynamically generated at…
1
2