forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 658 Bytes
/
.travis.yml
File metadata and controls
28 lines (28 loc) · 658 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
28
language: node_js
node_js:
- 9.11.1
cache:
yarn: true
directories:
- node_modules
- website/node_modules
branches:
only:
- master
- next
- v0.11.0
install:
- git fetch --unshallow --all
- yarn global add codecov
- yarn
script:
- yarn run test && codecov
after_script:
- ./.ci/expo-ci.sh
after_success:
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; 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 run publish-gh-pages
fi