mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
Jakub Sokołowski
718e6cdbb3
Otherwise we get weird failures like these: ``` clang-11: error: cannot use 'cpp-output' output with multiple -arch options clang-11: error: invalid argument '-mmacos-version-min=10.12' not allowed with '-miphoneos-version-min=8.0' clang-11: error: invalid argument '-mmacos-version-min=10.12' not allowed with '-miphoneos-version-min=8.0' ``` Depends on: https://github.com/status-im/status-jenkins-lib/pull/47 Signed-off-by: Jakub Sokołowski <jakub@status.im>
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
library 'status-jenkins-lib@v1.5.3'
|
|
|
|
pipeline {
|
|
agent { label 'macos' }
|
|
|
|
environment {
|
|
LANG = 'en_US.UTF-8'
|
|
LANGUAGE = 'en_US.UTF-8'
|
|
LC_ALL = 'en_US.UTF-8'
|
|
TARGET = 'ios'
|
|
FASTLANE_DISABLE_COLORS = 1
|
|
/* See nix/README.md */
|
|
NIX_IGNORE_SYMLINK_STORE = 1
|
|
/* avoid writing to r/o /nix */
|
|
GEM_HOME = '~/.rubygems'
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
/* Disable concurrent jobs */
|
|
disableConcurrentBuilds()
|
|
/* Prevent Jenkins jobs from running forever */
|
|
timeout(time: 45, unit: 'MINUTES')
|
|
/* Don't keep more than 50 builds */
|
|
buildDiscarder(logRotator(numToKeepStr: '50'))
|
|
}
|
|
|
|
stages {
|
|
stage('Prep') {
|
|
steps { script {
|
|
nix.shell(
|
|
'bundle install --gemfile=fastlane/Gemfile',
|
|
attr: 'shells.fastlane',
|
|
)
|
|
} }
|
|
}
|
|
stage('Clean Users'){
|
|
steps { script {
|
|
withCredentials([
|
|
usernamePassword(
|
|
credentialsId: 'fastlane-match-apple-id',
|
|
usernameVariable: 'FASTLANE_APPLE_ID',
|
|
passwordVariable: 'FASTLANE_PASSWORD'
|
|
),
|
|
]) {
|
|
nix.shell(
|
|
'bundle exec --gemfile=fastlane/Gemfile fastlane ios clean',
|
|
keepEnv: ['FASTLANE_APPLE_ID', 'FASTLANE_PASSWORD'],
|
|
attr: 'shells.fastlane',
|
|
)
|
|
}
|
|
} }
|
|
}
|
|
}
|
|
}
|