mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
Jakub Sokołowski
7b6b620ceb
Changes: - Add `nix/DETAILS.md` for more in-depth info - Rename some of `config.status-im` variables - Drop `env` argument for Android build - Use `overlays` instead of `packageOverrides` - Move the `pkgs` overlay to `nix/overlay.nix` - Move `nix/status-go/utils.nix` to `nix/tools` - Make `shell.nix` use the `shells.default` only - Use `default.nix` as target for `nix/scripts/shell.sh` - Make `nix/scripts/shell.sh` use `--attr` instead of `target` - Drop the `target` argument in favour of using `--attr` - Drop unnecessary `src` from `nix/mobile/ios/default.nix` - Move `mkShell` and `mergeSh` under `lib` - Move `patched-go` package to `nix/pkgs` directory - Move `gomobile` package to `nix/pkgs` directory - Move `ANDROID_ABI_SPLIT` to `config.status-im.android.abi-split` - Move `ANDROID_ABI_INCLUDE to `config.status-im.android.abi-include` Signed-off-by: Jakub Sokołowski <jakub@status.im>
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
library 'status-react-jenkins@v1.1.1'
|
|
|
|
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',
|
|
)
|
|
}
|
|
} }
|
|
}
|
|
}
|
|
}
|