Prepare 1.0.0 release
This commit is contained in:
21
.travis.yml
21
.travis.yml
@@ -1,10 +1,12 @@
|
||||
# only run for: merge commits, releases and pull-requests
|
||||
if: type != push OR branch = master OR branch =~ /^\d+\.\d+\.\d+(-.*)?$/
|
||||
if: type != push OR branch = master OR branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/ OR branch =~ /^\d+\.\d+\.\d+(-.*)?$/
|
||||
|
||||
stages:
|
||||
- name: pretest
|
||||
- name: test
|
||||
- name: deploy
|
||||
if: branch =~ /^deploy-\d+\.\d+\.\d+(-.*)?$/
|
||||
- name: publish
|
||||
if: branch =~ /^\d+\.\d+\.\d+(-.*)?$/
|
||||
|
||||
os: osx
|
||||
@@ -70,6 +72,10 @@ jobs:
|
||||
- <<: *linux
|
||||
env: SWIFT_VERSION=5.1.3
|
||||
name: Linux / Swift 5.1.3
|
||||
|
||||
- <<: *linux
|
||||
env: SWIFT_VERSION=5.2-DEVELOPMENT-SNAPSHOT-2020-01-22-a
|
||||
name: Linux / Swift 5.2.0-dev+2020-01-22-a
|
||||
|
||||
- stage: pretest
|
||||
name: Check Linux tests are sync’d
|
||||
@@ -78,6 +84,19 @@ jobs:
|
||||
osx_image: xcode10.2
|
||||
|
||||
- stage: deploy
|
||||
name: Deploy
|
||||
osx_image: xcode11
|
||||
script:
|
||||
- export VERSION=$(echo $TRAVIS_TAG | cut -c 8-)
|
||||
- git tag "$VERSION"
|
||||
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/mxcl/homebrew-made.git"
|
||||
- git push origin "$VERSION"
|
||||
- curl -O https://raw.githubusercontent.com/mxcl/ops/master/deploy
|
||||
- chmod u+x deploy
|
||||
- ./deploy publish-release
|
||||
- git push origin :$TRAVIS_TAG
|
||||
|
||||
- stage: publish
|
||||
name: Jazzy
|
||||
osx_image: xcode10.2
|
||||
install: gem install jazzy
|
||||
|
||||
Reference in New Issue
Block a user