Fail build if `make vendor` hasn't been run
This commit is contained in:
parent
41cba814c8
commit
0ed66b98ae
|
@ -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 {
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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'
|
||||
} } }
|
||||
|
|
Loading…
Reference in New Issue