forked from Skyscanner/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (44 loc) · 2.31 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: node_js
env:
global:
- NPM_CONFIG_LOGLEVEL=warn
- secure: ZzSXv0mXeBuJ3Lb+zIHXn04vTxve1C9LYCdVZmqibPCbc0k5DA3up/sSuMsJzUqoS4FxOCm1wOq/oXvEgBEJgxjCkevH7Qo9V7AtCHgs6gF2yaeBFdm1jjf7sB2BxO9F3EcpPSgWXHNNRX6SFxw0a3qMLvE5kDZIzDwIaOtR/j9NweiIXkua2gZkuOKqc18HulTZ5zlK/XBW4TrOwxJyDOYYHTdzhYXVVdK5lFof8pd6MUpk+s5eRxtBPtDq4GO4MPtj1Z5dYmhEUALEepJAjYRWqhzlsVwWwqAChJDEhUYoyAXVS9Mf+LZrD5LDzWYcmCrlsebPczEcEKoN+CMRmNW8w6/l+xPoPYac7nubtQCqZA32LkdGQ/7oG6w2ttsKnotREp/1JAGpi59uEOeJ3EjysGOH5Y+pphNgLjZg2UICoT3rYwqglKSARdLMIBfgzVF3aHVnRgUam8i830DSHTrc5ShxpL6O0mwZa6Bemf9jwsXC5Dpo0XaIbA4zOV+Y4Gq98YBN9U3Y50dyPbbsc5VTRlCJZrC7+vIgNgy8P4vYsITip3Nj9pAmKNFV1t3ChtkxI6Q7CM70CVdJALeireeok0kz+HKbuOy0t0Efz90lPj+WsleZEJBve7AFYPzR1h6Czs072X4sQlPXedcCHRhD48WgbBX0IfzTiAYCuG0=
install:
- npm install
- npm run build
script:
- set -e
- ./scripts/check-pristine-state package-lock.json native/ios/native.xcodeproj/project.pbxproj native/ios/native/Info.plist
- npm run danger
- npm test
- npm run docs:dist
- if [ "$TRAVIS_BRANCH" == 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then npm run storybook:dist; fi
- test -e dist/index.html
- test -e dist/sassdoc/index.html
cache:
directories:
- node_modules
- native/node_modules
branches:
only:
- master
- /^greenkeeper/.*$/
deploy:
provider: pages
skip_cleanup: true
github_token: $DEPLOY_TOKEN
on:
branch: master
local_dir: dist/
skip_cleanup: true
detect_encoding: true
repo: backpack/backpack.github.io
target-branch: master
verbose: true
notifications:
slack:
rooms:
- secure: 0kcw0/iGqd4JPjvc+SBQmDIqeK427pCSw1xVyJooaknlIUlb3TyOaJdI1Wko92rUoYRfTJ/8eZv/GuL8U+kmA8ygu1ByfhFOg69Oyb55OThsgd+p8mMstjE62Rm+sN+8MBUEAllHGYVlKgKaO+HLPFor0fdYxl56CVVsPRWKOmJSXEn8EvuGrstSiiQU6pNZiJoQT3QpR43YhcmigMmTDkUNHgrvinWE0fprY9cLOpbuFJhZ7+OBL34hv/9Ox9QuD4Vb1rJvdeeW5ijVOrOh6JvqaR06JuutDn13q3VU6aJq0pNJwp5ujX84Aa5fQaC7HdcfdJ6ttuYheyoDPlNUyUQuBihg2c3F9tvivSmrvGLd4HV9NUjKZTY7XpYrDsEGcYGNAOO8XHG3PNaHcdM6+/0UclP2obLPVadTOvhEHPOGLRZorFmg7GTBBwafjMMREHTNYt++4JyYm5vUwcfGZX7qT/2YPCplmz1dYDjHmfeCygmYWr6KAP7bHq3wjnrje3BslRMBNu+nY2eaqmSAG5bLsOMUi9qy4+izsNgkVHpRg/uZA3yE+OVfMc5ycj+McrwK2ySrg1zd+/TrNJZTxW/5f9oHWR4kvYPeXcDNlL20fxw9L7CAhLi/Nx0RsC+wwbk+MC20G6vtE7gCsyv3QWyqxPeoJ6KuAoRQ2zCjcKA=
on_pull_requests: false
on_success: always
on_failure: change