status-react/ci/mobile.groovy

31 lines
755 B
Groovy
Raw Normal View History

ios = load 'ci/ios.groovy'
utils = load 'ci/utils.groovy'
android = load 'ci/android.groovy'
def prep(type = 'nightly') {
if (type != 'release') {
utils.doGitRebase()
}
/* ensure that we start from a known state */
sh 'make clean'
/* Run at start to void mismatched numbers */
utils.genBuildNumber()
/* select type of build */
switch (type) {
case 'nightly':
sh 'cp .env.nightly .env'; break
case 'release':
sh 'cp .env.prod .env'; break
case 'e2e':
sh 'cp .env.e2e .env'; break
default:
sh 'cp .env.jenkins .env'; break
}
/* install ruby dependencies */
sh 'bundle install --quiet'
/* node deps, pods, and status-go download */
sh "make prepare-${env.BUILD_PLATFORM}"
}
return this