2018-08-14 18:09:52 +00:00
|
|
|
common = load 'ci/common.groovy'
|
2018-08-21 15:17:25 +00:00
|
|
|
ios = load 'ci/ios.groovy'
|
|
|
|
android = load 'ci/android.groovy'
|
|
|
|
|
|
|
|
def prep(type = 'debug') {
|
|
|
|
/* select type of build */
|
|
|
|
switch (type) {
|
2018-08-22 19:20:47 +00:00
|
|
|
case 'nightly':
|
2018-08-21 15:17:25 +00:00
|
|
|
sh 'cp .env.nightly .env'; break
|
|
|
|
case 'release':
|
|
|
|
sh 'cp .env.prod .env'; break
|
|
|
|
case 'e2e':
|
|
|
|
sh 'cp .env.e2e .env'; break
|
|
|
|
}
|
2018-08-14 18:09:52 +00:00
|
|
|
common.installJSDeps('mobile')
|
2018-08-21 15:17:25 +00:00
|
|
|
/* install Maven dependencies */
|
2018-08-14 18:09:52 +00:00
|
|
|
sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
|
|
|
|
/* generate ios/StatusIm.xcworkspace */
|
|
|
|
dir('ios') {
|
|
|
|
sh 'pod install'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def runTests() {
|
|
|
|
sh 'lein test-cljs'
|
|
|
|
}
|
|
|
|
|
|
|
|
def leinBuild() {
|
|
|
|
sh 'lein prod-build'
|
|
|
|
}
|
|
|
|
|
|
|
|
return this
|