forked from Frugghi/SwiftSH
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
33 lines (33 loc) · 863 Bytes
/
.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
26
27
28
29
30
31
32
33
language: objective-c
osx_image: xcode9.4
notifications:
email: false
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=SwiftSH.xcworkspace
- IOS_FRAMEWORK_SCHEME="SwiftSH"
- IOS_SDK=iphonesimulator11.4
- EXAMPLE_SCHEME="SwiftSH Example"
matrix:
include:
- os: osx
env: DESTINATION="OS=11.4,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="YES" GENERATE_DOC="YES"
install:
- .travis/install-jazzy.sh
script:
- .travis/build.sh debug "$SCHEME"
- .travis/build.sh release "$SCHEME"
- .travis/build-example.sh debug "$EXAMPLE_SCHEME"
- .travis/generate-docs.sh
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: docs/
on:
branch: master
target-branch: gh-pages
condition: "$GENERATE_DOC = YES"