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'
|
|
|
|
|
2018-08-23 12:56:19 +00:00
|
|
|
def prep(type = 'nightly') {
|
2018-08-21 15:17:25 +00:00
|
|
|
/* 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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-27 15:32:54 +00:00
|
|
|
def runLint() {
|
|
|
|
sh 'lein cljfmt check'
|
|
|
|
}
|
|
|
|
|
2018-08-14 18:09:52 +00:00
|
|
|
def runTests() {
|
|
|
|
sh 'lein test-cljs'
|
|
|
|
}
|
|
|
|
|
2018-08-29 12:38:12 +00:00
|
|
|
def leinBuild(platform) {
|
|
|
|
sh "lein prod-build-${platform}"
|
2018-08-14 18:09:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return this
|