exclude files from triggering a travis ci build on github

ljwobker

Our organization uses travis-ci within github for basic sanity checking when a change is committed. Is there a way to prevent a full travis build/run when changes to specific files or file types are made?

As the simplest example: if someone makes a change to the README.md file and wants to commit directly to master, we don't need to do a CI run before allowing this.

Jens A. Koch

You might instruct your team to add [skip ci] to your commit messages, e.g.

git commit -m "updated readme [skip ci]".

This means that this Github commit (after it is pushed) will not trigger a Travis-CI run.

The alternative is to accept that a commit triggers a Travis-CI run, but then simply do condition checks inside your .travis.yml (or scripts executed by it) to exclude processing of unit-tests, etc. In other words: there will be a CI run, but all heavy script stuff could be skipped.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Getting the Travis CI build status of a GitHub commit

Exclude folders and files from build

Exclude .bak files from build

How do I exclude the .cs files within an artifact from a vs-team-services CI build?

Eclipse - exclude file / folder from triggering workspace refresh after build

Show Travis-CI build status on Github Pull Request Page

How to get Travis CI to build and test xcode projects hosted on Github?

Travis-CI Auto-Tag Build for GitHub Release

Deployment in Travis-CI to GitHub Pages: which files will be uploaded?

iOS - Exclude Test files from Release build

Eclipse exclude php files from validation but not build

Exclude files from Play framework production build

Build webpack on travis ci

Excluding .yaml and .md files from auto triggering the Jenkins build

How to publish Travis CI artifacts to GitHub Release from several jobs

Is there a way to download compilation artifacts from a travis-ci build?

Exclude files in ant build

Pipeline GitHub -> Travis CI -> Docker

Travis CI - Android Build Script

Travis CI build triggered twice

How to exclude files from .xap for specific build configurations

Gradle build: Exclude resources files from Spring Boot Jar file

How to include/exclude source files from the project depending on the build configuration?

asp.net core exclude files from the build

Exclude .js files from build React.js

Why is my Travis CI build failing with "File Not Found" errors when those files exist?

Download build from Travis

Exclude from build in CLion

Installing specific R package from specific branch from github repo on travis-ci

TOP Ranking

HotTag

Archive