-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
executable file
·35 lines (30 loc) · 1.22 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
26
27
28
29
30
31
32
33
34
35
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode10.2
language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
before_install:
- nvm install 4
# - gem install cocoapods -v '1.2.1'
- pod repo update --silent
script:
- (xcodebuild -workspace Reactant.xcworkspace -scheme Reactant -sdk iphonesimulator build-for-testing | egrep -A 3 "(error|warning|note):\ "; exit ${PIPESTATUS[0]})
- xctool -workspace Reactant.xcworkspace -scheme Reactant -sdk iphonesimulator run-tests
# - travis_wait pod lib lint --allow-warnings
- npm install docpress && ./node_modules/.bin/docpress build
- cp CNAME ./_docpress/CNAME
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm install git-update-ghpages && ./node_modules/.bin/git-update-ghpages -e; fi
env:
global:
- GIT_NAME: Travis CI
- GIT_EMAIL: [email protected]
- GITHUB_REPO: Brightify/Reactant
- GIT_SOURCE: _docpress
notifications:
slack: brightify:00rIGJIfWqG5RyWCVoRNEgxt