Skip to content

Commit

Permalink
Fail build if make vendor hasn't been run
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Dec 20, 2019
1 parent 7963987 commit 01157e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion _assets/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ pipeline {

stage('Setup') { steps { dir(env.STATUS_PATH) {
/* install release tools */
sh 'make release-install'
sh 'make release-install modvendor-install'
} } } // stage(Setup)

stage('Vendoring check') { steps { dir(env.STATUS_PATH) {
/* fail build if vendoring hasn't been done */
sh 'GO111MODULE=on make vendor && git diff --exit-code --no-color --stat vendor/'
} } } // stage(Vendoring check)

stage('Build') {
parallel {
stage('iOS') { steps { script {
Expand Down
7 changes: 6 additions & 1 deletion _assets/ci/Jenkinsfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ pipeline {
} } }

stage('Setup') { steps { dir(env.STATUS_PATH) {
sh 'make setup-build'
sh 'make setup-build modvendor-install'
} } }

stage('Vendoring check') { steps { dir(env.STATUS_PATH) {
/* fail build if vendoring hasn't been done */
sh 'GO111MODULE=on make vendor && git diff --exit-code --no-color --stat vendor/'
} } } // stage(Vendoring check)

stage('Compile') { steps { dir(env.STATUS_PATH) {
sh 'make statusgo-android'
sh "cp build/bin/statusgo.aar ${dest}/${artifact}"
Expand Down
7 changes: 6 additions & 1 deletion _assets/ci/Jenkinsfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ pipeline {
} } }

stage('Setup') { steps { dir(env.STATUS_PATH) {
sh 'make setup-build'
sh 'GO111MODULE=off make setup-build modvendor-install'
} } }

stage('Vendoring check') { steps { dir(env.STATUS_PATH) {
/* fail build if vendoring hasn't been done */
sh 'GO111MODULE=on make vendor && git diff --exit-code --no-color --stat vendor/'
} } } // stage(Vendoring check)

stage('Lint') { steps { dir(env.STATUS_PATH) {
sh 'make lint'
} } }
Expand Down

0 comments on commit 01157e3

Please # to comment.