Skip to content

Commit

Permalink
fixup! 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 b282857 commit 7d27cb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _assets/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ 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 test') { steps { dir(env.STATUS_PATH) {
/* fail build if vendoring hasn't been done */
sh 'make vendor && git diff --quiet vendor/'
sh 'GO111MODULE=on make vendor && git diff --quiet vendor/'
} } } // stage(Setup)

stage('Build') {
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 test') { steps { dir(env.STATUS_PATH) {
/* fail build if vendoring hasn't been done */
sh 'GO111MODULE=on make vendor && git diff --quiet vendor/'
} } } // stage(Setup)

stage('Compile') { steps { dir(env.STATUS_PATH) {
sh 'make statusgo-android'
sh "cp build/bin/statusgo.aar ${dest}/${artifact}"
Expand Down

0 comments on commit 7d27cb6

Please # to comment.