forked from imatix/gsl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request imatix#19 from jimklimov/jenkinsfile
Problem: there is no Jenkinsfile
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,9 @@ build/ | |
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
# Jenkins temp dir | ||
src@tmp/ | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pipeline { | ||
agent { label "linux || macosx || windows" } | ||
triggers { | ||
pollSCM 'H/5 * * * *' | ||
} | ||
stages { | ||
stage ('compile') { | ||
steps { | ||
dir ('src') { | ||
sh 'CCACHE_BASEDIR="`pwd`" ; export CCACHE_BASEDIR; make -k -j4 || make' | ||
sh 'echo "Are GitIgnores good after make? (should have no output below)"; git status -s || true' | ||
} | ||
} | ||
} | ||
stage ('test') { | ||
steps { | ||
dir ('src') { | ||
sh 'CCACHE_BASEDIR="`pwd`" ; export CCACHE_BASEDIR; make test' | ||
sh 'echo "Are GitIgnores good after make test? (should have no output below)"; git status -s || true' | ||
} | ||
} | ||
} | ||
stage ('self-check GSL parser') { | ||
steps { | ||
dir ('src') { | ||
sh 'CCACHE_BASEDIR="`pwd`" ; export CCACHE_BASEDIR; make check' | ||
sh 'echo "Are GitIgnores good after make check? (should have no output below)"; git status -s || true' | ||
} | ||
} | ||
} | ||
} | ||
} |