AusweisApp2/resources/jenkins/dsl/Reviews/Review_iOS_IPA.groovy

34 lines
751 B
Groovy
Raw Normal View History

2017-07-03 09:30:10 +02:00
import common.Review
import static common.Constants.strip
def j = new Review
(
name: 'iOS_IPA',
libraries: 'iOS',
label: 'iOS',
artifacts: 'build/*.ipa'
).generate(this)
j.with
{
steps
{
shell('cd source; python resources/jenkins/import.py')
2017-12-20 14:54:05 +01:00
shell('security unlock-keychain \${KEYCHAIN_CREDENTIALS} \${HOME}/Library/Keychains/login.keychain-db')
2017-07-03 09:30:10 +02:00
shell(strip('''\
cd build;
2017-12-20 14:54:05 +01:00
cmake -Werror=dev ../source
2017-07-03 09:30:10 +02:00
-DCMAKE_BUILD_TYPE=release
-DCMAKE_PREFIX_PATH=\${WORKSPACE}/libs/build/dist
-DCMAKE_TOOLCHAIN_FILE=../source/cmake/iOS.toolchain.cmake
-GXcode
'''))
2017-12-20 14:54:05 +01:00
shell('cd build; xcodebuild -target install -configuration Release ARCHS=arm64')
2017-07-03 09:30:10 +02:00
shell('cd build; xcodebuild -target ipa -configuration Release')
}
}