-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (27 loc) · 666 Bytes
/
.travis.yml
File metadata and controls
27 lines (27 loc) · 666 Bytes
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
language: node_js
node_js:
- 'stable'
cache:
yarn: true
directories:
- node_modules
- website/node_modules
branches:
only:
- master
- next
- patch
install:
- yarn global add codecov
- yarn
script:
- yarn lint
- yarn build
- yarn test:ci && codecov --disable=gcov
after_success:
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "next" ]; then
git config --global user.name "React Native Elements CI"
echo -e "machine github.com\n login react-native-elements-ci\n password $GITHUB_TOKEN" >> ~/.netrc
cd website && yarn && GIT_USER=react-native-elements-ci yarn publish-gh-pages
fi