mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
Jakub Sokołowski
75f23a19ad
Signed-off-by: Jakub Sokołowski <jakub@status.im> - rename jar file to match flatDir search method - try using ivy repo to pull status-go from github - drop use of artifactory in pom.xml - move status-go version to a STATUS_GO_VERSION file - upgrade status-go to 0.16.0 - unzip with overwriting - prepare-ios: doewnload archive only if it doesn't exist - fix prepare-android and prepare-ios - use Makefile targets to make sure status-go archives exist - remove unnecessary call to make prepare-android Signed-off-by: Jakub Sokołowski <jakub@status.im>
82 lines
1.7 KiB
Plaintext
82 lines
1.7 KiB
Plaintext
pipeline {
|
|
agent {
|
|
/* privileged mode is necessary for fuse */
|
|
docker {
|
|
label 'linux-new'
|
|
image 'statusteam/linux-desktop-ubuntu:qt-5.11.2'
|
|
args (
|
|
"--privileged "+
|
|
"-v /dev/fuse:/dev/fuse "+
|
|
"-v /var/tmp/lein:/var/tmp/lein:rw "+
|
|
"-v /var/tmp/npm:/var/tmp/npm:rw "+
|
|
"-v /opt/StatusImAppImage.zip:/opt/StatusImAppImage.zip:ro"
|
|
)
|
|
}
|
|
}
|
|
|
|
options {
|
|
buildDiscarder(logRotator(
|
|
numToKeepStr: '30',
|
|
daysToKeepStr: '30',
|
|
artifactNumToKeepStr: '30',
|
|
))
|
|
}
|
|
|
|
/**
|
|
* WARNING: Jenkins ignores PATH changes in Docker
|
|
* https://issues.jenkins-ci.org/browse/JENKINS-49076
|
|
**/
|
|
environment {
|
|
BUILD_PLATFORM = 'linux'
|
|
LANG = 'en_US.UTF-8'
|
|
LANGUAGE = 'en_US.UTF-8'
|
|
LC_ALL = 'en_US.UTF-8'
|
|
NPM_CONFIG_CACHE = '/var/tmp/npm'
|
|
LEIN_HOME = '/var/tmp/lein'
|
|
QT_PATH = '/opt/qt'
|
|
STATUSIM_APPIMAGE = '/opt/StatusImAppImage.zip'
|
|
}
|
|
|
|
stages {
|
|
stage('Prep') {
|
|
steps {
|
|
script {
|
|
/* Necessary to load methods */
|
|
desktop = load 'ci/desktop.groovy'
|
|
cmn = load 'ci/common.groovy'
|
|
sh 'env'
|
|
desktop.prepDeps()
|
|
}
|
|
}
|
|
}
|
|
stage('Lint') {
|
|
steps {
|
|
script { cmn.runLint() }
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
steps {
|
|
script { cmn.runTests() }
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
script { desktop.buildClojureScript() }
|
|
}
|
|
}
|
|
stage('Compile') {
|
|
steps {
|
|
script { desktop.compile() }
|
|
}
|
|
}
|
|
stage('Bundle') {
|
|
steps {
|
|
script { app = desktop.bundleLinux(cmn.getBuildType()) }
|
|
}
|
|
}
|
|
stage('Archive') {
|
|
steps { archiveArtifacts app }
|
|
}
|
|
}
|
|
}
|