is-ci | Detect if the current environment is a CI server | Continous Integration library
kandi X-RAY | is-ci Summary
kandi X-RAY | is-ci Summary
Detect if the current environment is a CI server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of is-ci
is-ci Key Features
is-ci Examples and Code Snippets
root@f932304632f2:/app# export
declare -x HOME="/root"
declare -x HOSTNAME="f932304632f2"
declare -x NODE_VERSION="10.17.0"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PWD="/a
Community Discussions
Trending Discussions on is-ci
QUESTION
So really I have several problems here. This is my travis.yml file and this is the latest run https://travis-ci.com/github/harryyy27/allies-art-club:
...ANSWER
Answered 2021-May-03 at 13:23So I eventually resolved this by simply changing the $HEROKU_API to $HEROKU_API_KEY. This is an environment variable that when present automatically logs you into the Heroku CLI enabling you to run the scripts required to upload to your docker containers to Heroku. This is the travis.yml I eventually ended up with
QUESTION
This is my travis.yml file followed by the latest run https://travis-ci.com/github/harryyy27/allies-art-club:
...ANSWER
Answered 2021-Apr-28 at 12:52Resolved this, set it up differently though. See below. I think the stages have to be set up with the jobs/include object as seen below
see new travis.yml
QUESTION
Let's say I have a basic github action that builds my application, then deploys it to firebase:
...ANSWER
Answered 2021-Apr-12 at 13:39Here is documentation for how to add a workflow status badge.
The status badge represents an image - .png
this image is automatically updated by GitHub - e.g if your workflow is:
- successful the badge will be "green" and the status "success"
- failing the badge will be "red" and the status "failed"
The first part of the badge is the name of the workflow (either the name:
attribute or the name of the file)
You can also use the UI to generate a badge. See more in this answer.
Q: Do I need to have the badge in my readme before I run the action?
A: No you can add it anytime, if you add it before the workflow it shows no information (gray coloring). Keep in mind that you may need to "force refresh" the browser to see the new image (browser caching images)
Q: Is the build badge a stable url, or is it changed by the action at runtime?
A: It is as stable as the name of the workflow - if you change the name the badge will stop working.
Q: Is this something you can even do with actions or do you need to use travis-ci?
A: It is GitHub Action functionality, you do not need Travis-CI
QUESTION
I have been trying to get more into the methodology of continuous integration as of recent, and have chosen Travis CI for the job. However, on one of my projects that uses Java and Kotlin my local builds pass, but fail on Travis.
I've been unable to make sense of the error messages that I am getting as to why my build is failing. kotlin-maven-plugin
seems to be the origin of the errors. The problematic command as seen in the build logs is mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
.
I have run this command locally with no errors and a successful build.
Here's a relevant snippet of the stack trace from the CI Build Job:
...ANSWER
Answered 2021-Apr-07 at 12:52The problem was being caused by an issue with illegal reflective operations and the Kotlin Maven Plugin with any project over Java 9 (my project uses Java 15). As described by this thread on YouTrack, a workaround is to:
A workaround is to run
mvn
with the following environment variable:MAVEN_OPTS=--illegal-access=permit
Adding a global environment variable with the same value to my .travis.yml fixed the issue.
QUESTION
I am trying to build a project in Maven and am experiencing the following error:
...ANSWER
Answered 2021-Mar-31 at 19:00You need Java 11 to build the project. I was able to build it locally using JDK 11. I used maven wrapper. You can try using the following command.
QUESTION
I cached a docker image on travis-ci. The docker image is created from a dockerfile. Now my dockerfile changed, and I need to remove caches and rebuild the docker image. How can I remove the caches on travis-ci?
My current .travis.yml
looks like this:
ANSWER
Answered 2021-Mar-24 at 16:04Per the docs there are three methods:
- Using the UI: "More options" -> "Caches" on the repo's page
- Using the CLI:
travis cache --delete
- Using the API:
DELETE /repos/{repository.id}/caches
That said, Docker images are one of the examples explicitly called out as a thing not to cache:
Large files that are quick to install but slow to download do not benefit from caching, as they take as long to download from the cache as from the original source
In your example it's not clear what's involved in the pipeline beyond that Dockerfile - even if the file itself hasn't changed, any of the things that go into it (base image, source code, etc.) might have. Caching the image means you may get false positives, builds that pass even though docker build
would have failed.
QUESTION
I currently have the following Git Repository: https://github.com/SebastianGode/ansible-collection-cloud/tree/gh-pages And the GitHub Page link: https://sebastiangode.github.io/ansible-collection-cloud/
The problem is that GitHub Pages will only solve the index.html and will throw an 404 for all required css and image stuff:
As the documentation is getting automatically generated by a travis-ci pipeline it's probably impossible to change paths, but as it works when hosted it locally it also should work on GitHub pages.
Is there any solution to this problem?
...ANSWER
Answered 2021-Mar-24 at 10:46I fixed it.
GitHub has Jekyll running behind it which will mess up special paths (here the underscore paths). You can disable jekyll by just creating a .nojekyll
file in the root directory of the branch. If you use travis-CI for something like that and run a tox script just call the command touch {toxinidir}/.nojekyll
This will result in a working website for me.
QUESTION
I am using Travis-CI to test code in a repository. There are quite some files after the testing and I would like to have them at a persistent place. How can I do that under the context of Travis-CI?
As an artificial example, suppose my Travis-CI server runs a C program that stores a large number of integers in a specific file. The file can be found at the Travis-CI server after the build. But how can I get that file? In my use case, this file is large and it would not make sense to read it from the console of Travis-CI; in other words, I would not consider using "cat ..." in .travis.yml.
...ANSWER
Answered 2021-Mar-15 at 08:33After some search, here is what I got:
The most convenient way seems to deploy the generated files to GitHub pages. The process is explained here: https://docs.travis-ci.com/user/deployment/pages/. In short:
first, create a GitHub page from the repository under test. This can be done through the Github web of the repository. The outcome includes an additional remote branch called gh-=pages generated.
then, in
.travis.yml
, use the deploy section to specify the condition to do the deployment.
QUESTION
When I use deployment in Travis-CI to GitHub Pages, which files, or which kinds of files, will be uploaded to GitHub pages?
For example, here is from my .travis.yml, which does not tell which files will be uploaded.
...ANSWER
Answered 2021-Mar-15 at 08:21I got an answer after some search, which also corresponds to the comments above.
By default, all files in the home directory of the travis ci server (including subdirectores) will be uploaded to GitHub pages. If local_dir is specified in the "deploy" section of travis ci, then only files in local_dir will be uploaded.
QUESTION
I am running a custom Jenkins 2.263.4 build on Travis-CI. We need a fix with relative pathes that never made it into the Jenkins core...well for us it is mandatory.
Based on release 2.263.4 I applied the fix in core/SecretRewriter.java and core/VirtualFile.java and also changed the version name to give it branding. This worked very well in the past releases. But the last update we did was one year ago.
Now I am running into the error:
...ANSWER
Answered 2021-Mar-10 at 09:32The issue is that the build is being execute two times based on the mvn install
followed by mvn package
which is defined in travis.yml
file. This causes the issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install is-ci
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page