Merge pull request #197 from mas-cli/pipeline

👷🏻‍♀️ Jenkins Pipeline
This commit is contained in:
Ben Chatelain 2019-01-06 15:29:06 -07:00 committed by GitHub
commit 84a9a49143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 5 deletions

View file

@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
- 👷🏻‍♀️ Jenkins Pipeline #197
- ✨ New `home`, `open` and `vendor` commands #196
- 🐛📦 Fix paths building installer package #195
- ♻️ AppLibrary refactor #193

View file

@ -11,7 +11,7 @@ GEM
colored2 (3.1.2)
cork (0.3.0)
colored2 (~> 3.1)
danger (5.7.0)
danger (5.11.0)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
@ -23,7 +23,7 @@ GEM
no_proxy_fix
octokit (~> 4.7)
terminal-table (~> 1)
faraday (0.15.3)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
@ -42,7 +42,7 @@ GEM
faraday (~> 0.8, < 1.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.4.0)
unicode-display_width (1.4.1)
xcpretty (0.3.0)
rouge (~> 2.0.7)
@ -54,4 +54,4 @@ DEPENDENCIES
xcpretty
BUNDLED WITH
1.16.6
1.17.3

65
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,65 @@
#!/usr/bin/env groovy
/*
* Jenkinsfile
* mas-cli
*
* Declarative Jenkins pipeline script - https://jenkins.io/doc/book/pipeline/
*/
pipeline {
agent any
options {
// https://jenkins.io/doc/book/pipeline/syntax/#options
buildDiscarder(logRotator(numToKeepStr: '100'))
disableConcurrentBuilds()
timeout(time: 1, unit: 'HOURS')
timestamps()
}
triggers {
// cron('H */4 * * 1-5')
githubPush()
}
environment {
LANG = 'en_US.UTF-8'
LANGUAGE = 'en_US.UTF-8'
LC_ALL = 'en_US.UTF-8'
}
stages {
stage('Assemble') {
steps {
ansiColor('xterm') {
sh 'script/bootstrap'
sh 'script/build'
sh 'script/archive'
sh 'script/package build/distribution-tmp'
}
}
}
stage('Test') {
steps {
ansiColor('xterm') {
sh 'script/test'
}
}
}
stage('Lint') {
steps {
ansiColor('xterm') {
echo 'Not implemented'
}
}
}
stage('Danger') {
steps {
ansiColor('xterm') {
// sh 'bundle install --verbose'
sh 'bundle exec danger --verbose'
}
}
}
}
}

View file

@ -20,8 +20,16 @@ mkdir -p $INSTALL_TEMPORARY_FOLDER
VERSION=$(agvtool what-marketing-version -terse1)
# Final destination.
PREFIX=/usr/local
# Override default prefix path with optional 1st arg
if test -n "$1"; then
PREFIX="$1"
fi
# Run Xcode's install process
script/install
script/install "$PREFIX"
echo "==> 📦 Assemble an installer package"