forked from AsyncNinja/AsyncNinja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 1.77 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: objective-c
osx_image: xcode10.1
before_install:
- gem update bundler
- sudo gem install xcpretty xcpretty-travis-formatter jazzy
- brew install swiftlint || true
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
jobs:
include:
- name: "Update docs"
script: |
generated_docs_dir="$TRAVIS_TAG"
jazzy --clean --author AsyncNinja --author_url http://async.ninja --github_url https://github.com/AsyncNinja/AsyncNinja --use-safe-filenames --sdk iphone --output $generated_docs_dir
cp title_image.png $generated_docs_dir
zip -r docs.zip $generated_docs_dir
artifacts upload docs.zip
if: tag IS present
- name: "macOS test"
script: set -o pipefail && xcodebuild build test -project AsyncNinja.xcodeproj -scheme AsyncNinja -sdk macosx -configuration Release | xcpretty --no-color --no-utf -f `xcpretty-travis-formatter`
- name: "iOS iPhone 5 test"
script: set -o pipefail && xcodebuild build test -project AsyncNinja.xcodeproj -scheme AsyncNinja -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 5' -configuration Release | xcpretty --no-color --no-utf -f `xcpretty-travis-formatter`
- name: "iOS iPhone X test"
script: set -o pipefail && xcodebuild build test -project AsyncNinja.xcodeproj -scheme AsyncNinja -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X' -configuration Release | xcpretty --no-color --no-utf -f `xcpretty-travis-formatter`
- name: "appleTV test"
script: set -o pipefail && xcodebuild build test -project AsyncNinja.xcodeproj -scheme AsyncNinja -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' -configuration Release | xcpretty --no-color --no-utf -f `xcpretty-travis-formatter`