29 lines
743 B
Groovy
29 lines
743 B
Groovy
ios = load 'ci/ios.groovy'
|
|
utils = load 'ci/utils.groovy'
|
|
android = load 'ci/android.groovy'
|
|
|
|
def prep(type = 'nightly') {
|
|
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 */
|
|
utils.nix_sh 'bundle install --quiet'
|
|
/* node deps, pods, and status-go download */
|
|
utils.nix_sh "make prepare-${env.TARGET_PLATFORM}"
|
|
}
|
|
|
|
return this
|