forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.69 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
36
language: node_js
node_js:
- stable
cache:
yarn: true
directories:
- node_modules
branches:
only:
- master
- next
- v0.11.0
env:
global:
- GH_USER_NAME: react-native-training
- GH_PROJECT_NAME: react-native-elements
- GH_FULL_NAME: Monte Thakkar
- GH_EMAIL: [email protected]
- SITE_URL: https://react-native-training.github.io/react-native-elements/
- GH_REF: github.com/react-native-training/react-native-elements/
- secure: VuNN+STvL24FGlqFlkfyVPISbEKgmwLUDoDVj7DT/0N0JHsFv3+EY7KCnDpOFkWXbuznwVBH8jZYJlNgZFxx+FlcE9lV+/DFz4Ibe651Tu5bMTGTu5F+f/A7zaMbwXWYLFV+3t1K4+H2VcClkkGLC5J7kEtToQCVNDsPUNVHBSUJ65vX7TuJyir3dwPNunXMaB5VH4WLyfkJwDYG05/Y3Zcql8I0gweZf/poyCE9EcA8mwAQD+Oy9p6dogpGJei6Okmks3i7A0W2bg4k14MxsJulsGgtfjG9xDnaRIA4sPmK6S6qfu9lrN3iRU82mGigsj/7jOkQ/lP0I//lorR8oCSmyPhmFBMMjUQH+kxHml59zsA+q2GKWaQCz4OUYvRJsD+j7XihIMmX4R3ms+l2kOBvxw0RzTni51CCxz5lOzLw3tjKYY7dn6I2xDicgTSCqSiFtu1DQavHZB+ekNuew/oJUhubbsGPWo4sZSk54FbO3mMauRgiuBqDjMaOuDPsc1qiWSKMh3VZYkdRs/txEbkl11sXQSyHUv8rG7Nv0/0/sOU9KxHkunecNY6Ynat8ovq2A1j3hxdAnq2zJc6sBTe6Lt1M0LioN48VGByBxxSHTcUDVAF1iYVzPW5kyhRxy2mWhl4s2xpvn6EYln4X8dG5QDL9M3yIdItHPBiWLNE=
install:
- git fetch --unshallow --all
- sudo pip install mkdocs mkdocs-material pymdown-extensions
- yarn global add codecov
- yarn
script:
- yarn run test && codecov
after_success:
- if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then exit
0; fi
- git config --global user.email "${GH_EMAIL}"
- git config --global user.name "${GH_FULL_NAME}"
- rev=$(git rev-parse --short HEAD)
- git remote set-url origin https://${GITHUB_TOKEN}@github.com/${GH_USER_NAME}/${GH_PROJECT_NAME}
- mkdocs gh-deploy --clean --force --message "Docs updated for ${rev}"