mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
commit
84a9a49143
4 changed files with 79 additions and 5 deletions
|
@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- 👷🏻♀️ Jenkins Pipeline #197
|
||||||
- ✨ New `home`, `open` and `vendor` commands #196
|
- ✨ New `home`, `open` and `vendor` commands #196
|
||||||
- 🐛📦 Fix paths building installer package #195
|
- 🐛📦 Fix paths building installer package #195
|
||||||
- ♻️ AppLibrary refactor #193
|
- ♻️ AppLibrary refactor #193
|
||||||
|
|
|
@ -11,7 +11,7 @@ GEM
|
||||||
colored2 (3.1.2)
|
colored2 (3.1.2)
|
||||||
cork (0.3.0)
|
cork (0.3.0)
|
||||||
colored2 (~> 3.1)
|
colored2 (~> 3.1)
|
||||||
danger (5.7.0)
|
danger (5.11.0)
|
||||||
claide (~> 1.0)
|
claide (~> 1.0)
|
||||||
claide-plugins (>= 0.9.2)
|
claide-plugins (>= 0.9.2)
|
||||||
colored2 (~> 3.1)
|
colored2 (~> 3.1)
|
||||||
|
@ -23,7 +23,7 @@ GEM
|
||||||
no_proxy_fix
|
no_proxy_fix
|
||||||
octokit (~> 4.7)
|
octokit (~> 4.7)
|
||||||
terminal-table (~> 1)
|
terminal-table (~> 1)
|
||||||
faraday (0.15.3)
|
faraday (0.15.4)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
faraday-http-cache (1.3.1)
|
faraday-http-cache (1.3.1)
|
||||||
faraday (~> 0.8)
|
faraday (~> 0.8)
|
||||||
|
@ -42,7 +42,7 @@ GEM
|
||||||
faraday (~> 0.8, < 1.0)
|
faraday (~> 0.8, < 1.0)
|
||||||
terminal-table (1.8.0)
|
terminal-table (1.8.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
unicode-display_width (1.4.0)
|
unicode-display_width (1.4.1)
|
||||||
xcpretty (0.3.0)
|
xcpretty (0.3.0)
|
||||||
rouge (~> 2.0.7)
|
rouge (~> 2.0.7)
|
||||||
|
|
||||||
|
@ -54,4 +54,4 @@ DEPENDENCIES
|
||||||
xcpretty
|
xcpretty
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.6
|
1.17.3
|
||||||
|
|
65
Jenkinsfile
vendored
Normal file
65
Jenkinsfile
vendored
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,8 +20,16 @@ mkdir -p $INSTALL_TEMPORARY_FOLDER
|
||||||
|
|
||||||
VERSION=$(agvtool what-marketing-version -terse1)
|
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
|
# Run Xcode's install process
|
||||||
script/install
|
script/install "$PREFIX"
|
||||||
|
|
||||||
echo "==> 📦 Assemble an installer package"
|
echo "==> 📦 Assemble an installer package"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue