mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Rewrite CI config using jobs
This commit is contained in:
+32
-29
@@ -1,44 +1,56 @@
|
||||
env:
|
||||
global:
|
||||
secure: iavIkrus2Xd3b086nz2srMGl52yqzLuCdhyEAhMODVqkzqMQ17s10y1TNb+vkepd0HgxI9j57d5X7tfChjWuWDwE2hZKjr/Kx2DfiUr1AKQD6ymuGrq/0Vv6yL9dfPU8goFArcrsBcyVKczLtTuLCKL498ZqokkQc/3kGvzW74lv+z410MfHS9/tvToO/yXJckL6qJ2XBAiElfOO0rEkllTeCo6N3bjcHZ2o7PE0K+CHYxwNKj0TmPmuNWZ3U4fzoWzkk01re1C1l5cpSb20g+2aGyi0yYX+PomX7fIIqNq9vmmyoeNdr35yqoQv/0zFeFnps83NKmZLAjSUhiUdhlbuBLBE+w8544LOaZnMDlFmpDjgyaVnRrOh0NrBB1FwU48aGfX5ljRQmk/07FTEUjvwvGGoOpz8lrLZi148FMHEospL3Sf7d8K+Q9WdtLTGk7HCnbOVcxS6oB/SWF/Cj6n5wu+EI1floBaZEsNPR40Gd4eM/Ik/E3lDrZThGDCWQsao981wm7IfEDBR1nuMME8gpZINFANNS1+5miFaGdTnDTp4Yd5MGEFZm+K8x+TG1891NwNH1ZmKXlypJXiUzvSjbh2ViNJGekdQj9q2gj2ZFlCfHJ05adwJ4w9qRuF00HpAOD6At6EnsjDXFJeTZS5dj8fi2YsU9or8KfTFoNY=
|
||||
git:
|
||||
depth: 1
|
||||
submodules: false
|
||||
matrix:
|
||||
include:
|
||||
- language: objective-c
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
language: objective-c
|
||||
osx_image: xcode9.2
|
||||
xcode_workspace: SWCompression.xcworkspace
|
||||
xcode_scheme: SWCompression
|
||||
xcode_sdk:
|
||||
- macosx10.13
|
||||
- iphoneos11.2
|
||||
- iphonesimulator11.2
|
||||
- appletvos11.2
|
||||
- appletvsimulator11.2
|
||||
- watchos4.2
|
||||
- watchsimulator4.2
|
||||
before_install:
|
||||
- brew update
|
||||
install:
|
||||
- brew install git-lfs
|
||||
- git lfs install
|
||||
- gem install xcpretty-travis-formatter
|
||||
before_script:
|
||||
- git submodule update --init --recursive --depth 1
|
||||
- cd Tests/Test\ Files
|
||||
- git lfs pull
|
||||
- cd ../..
|
||||
before_deploy:
|
||||
script:
|
||||
- set -o pipefail && xcodebuild -workspace SWCompression.xcworkspace -scheme SWCompression -destination "platform=OS X" clean test | xcpretty -f `xcpretty-travis-formatter`
|
||||
- set -o pipefail && xcodebuild -workspace SWCompression.xcworkspace -scheme SWCompression -destination "platform=iOS Simulator,name=iPhone 6S" clean test | xcpretty -f `xcpretty-travis-formatter`
|
||||
- set -o pipefail && xcodebuild -workspace SWCompression.xcworkspace -scheme SWCompression -destination "platform=watchOS Simulator,name=Apple Watch - 38mm" clean build | xcpretty -f `xcpretty-travis-formatter`
|
||||
- set -o pipefail && xcodebuild -workspace SWCompression.xcworkspace -scheme SWCompression -destination "platform=tvOS Simulator,name=Apple TV" clean test | xcpretty -f `xcpretty-travis-formatter`
|
||||
- language: generic
|
||||
os: linux
|
||||
dist: trusty
|
||||
install:
|
||||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
|
||||
script:
|
||||
- swift build
|
||||
- swift build -c release
|
||||
- stage: deploy
|
||||
if: env(TRAVIS_TAG) IS present
|
||||
language: objective-c
|
||||
osx_image: xcode9.2
|
||||
env:
|
||||
secure: iavIkrus2Xd3b086nz2srMGl52yqzLuCdhyEAhMODVqkzqMQ17s10y1TNb+vkepd0HgxI9j57d5X7tfChjWuWDwE2hZKjr/Kx2DfiUr1AKQD6ymuGrq/0Vv6yL9dfPU8goFArcrsBcyVKczLtTuLCKL498ZqokkQc/3kGvzW74lv+z410MfHS9/tvToO/yXJckL6qJ2XBAiElfOO0rEkllTeCo6N3bjcHZ2o7PE0K+CHYxwNKj0TmPmuNWZ3U4fzoWzkk01re1C1l5cpSb20g+2aGyi0yYX+PomX7fIIqNq9vmmyoeNdr35yqoQv/0zFeFnps83NKmZLAjSUhiUdhlbuBLBE+w8544LOaZnMDlFmpDjgyaVnRrOh0NrBB1FwU48aGfX5ljRQmk/07FTEUjvwvGGoOpz8lrLZi148FMHEospL3Sf7d8K+Q9WdtLTGk7HCnbOVcxS6oB/SWF/Cj6n5wu+EI1floBaZEsNPR40Gd4eM/Ik/E3lDrZThGDCWQsao981wm7IfEDBR1nuMME8gpZINFANNS1+5miFaGdTnDTp4Yd5MGEFZm+K8x+TG1891NwNH1ZmKXlypJXiUzvSjbh2ViNJGekdQj9q2gj2ZFlCfHJ05adwJ4w9qRuF00HpAOD6At6EnsjDXFJeTZS5dj8fi2YsU9or8KfTFoNY=
|
||||
before_install:
|
||||
- brew update
|
||||
install:
|
||||
# Update Carthage.
|
||||
- brew outdated carthage || brew upgrade carthage
|
||||
# Install SourceKitten and Jazzy.
|
||||
- brew install sourcekitten
|
||||
- gem install jazzy
|
||||
# Generate documentation.
|
||||
- sourcekitten doc --spm-module SWCompression > docs.json
|
||||
- jazzy
|
||||
before_deploy:
|
||||
# Build Carthage archive.
|
||||
- carthage build --no-skip-current
|
||||
- carthage archive SWCompression
|
||||
# Generate documentation.
|
||||
- sourcekitten doc --spm-module SWCompression > docs.json
|
||||
- jazzy
|
||||
deploy:
|
||||
- provider: releases
|
||||
skip_cleanup: true
|
||||
@@ -54,12 +66,3 @@ matrix:
|
||||
tags: true
|
||||
# Don't upload documentation if it is a test release.
|
||||
condition: $(git describe) != *"test"*
|
||||
- language: generic
|
||||
os: linux
|
||||
sudo: required
|
||||
dist: trusty
|
||||
install:
|
||||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
|
||||
script:
|
||||
- swift build
|
||||
- swift build -c release
|
||||
|
||||
Reference in New Issue
Block a user