forked from ApolloZhu/swift_qrcodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (36 loc) · 1008 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
34
35
36
37
38
language: generic
matrix:
include:
- os: linux
dist: trusty
- os: linux
dist: xenial
- os: osx
osx_image: xcode10.2
before_install:
- if [ $TRAVIS_OS_NAME == "osx" ]; then
gem install cocoapods --pre --no-document --quiet;
else
eval "$(curl -sL https://raw.githubusercontent.com/ApolloZhu/script/master/swift/install/5)";
fi
script:
- if [ $TRAVIS_OS_NAME == "osx" ]; then
xcodebuild test -scheme swift_qrcodejs-macOS &&
carthage build --no-skip-current &&
pod lib lint;
else
eval "$(curl -sL https://raw.githubusercontent.com/ApolloZhu/script/master/swift/ci)";
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- swift package generate-xcodeproj # Intensionaly overwrite xcodeproj
- sh jazzy.sh
deploy:
provider: pages
skip_cleanup: true
local_dir: docs
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
condition: $TRAVIS_OS_NAME = osx