forked from YIZHUANG/react-multi-carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (26 loc) · 742 Bytes
/
.travis.yml
File metadata and controls
27 lines (26 loc) · 742 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
jobs:
include:
- stage: test
language: node_js
node_js:
- "8"
dist: trusty
env:
- NODE_ENV=ci
cache:
directories:
- node_modules
script:
- npm run lint:fix
- npm run build
- npm run test
- stage: deploy
if: (NOT type IN (pull_request)) AND (branch = master)
script:
- openssl aes-256-cbc -K $encrypted_fc1c34415af5_key -iv $encrypted_fc1c34415af5_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host $gcpip\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ./deploy-documentation.sh $gcpip