UNPKG

636 BYAMLView Raw
1language: node_js
2node_js:
3 - 'stable'
4cache:
5 yarn: true
6 directories:
7 - node_modules
8 - website/node_modules
9branches:
10 only:
11 - master
12 - next
13 - patch
14install:
15 - yarn global add codecov
16 - yarn
17script:
18 - yarn lint
19 - yarn test:ci && codecov
20after_success:
21 - |
22 if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "next" ]; then
23 git config --global user.name "React Native Elements CI"
24 echo -e "machine github.com\n login react-native-elements-ci\n password $GITHUB_TOKEN" >> ~/.netrc
25 cd website && yarn && GIT_USER=react-native-elements-ci yarn publish-gh-pages
26 fi
27
\No newline at end of file