-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.91 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
language: node_js
dist: trusty
node_js:
- 10.9.0
cache:
yarn: true
directories:
- "./node_modules"
addons:
ssh_known_hosts: mralexandernickel.com
before_script:
- yarn build frontend-subjects
- yarn build --prod
script:
- yarn lint
- yarn test frontend-subjects --watch=false --code-coverage
after_success:
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
before_deploy:
- openssl aes-256-cbc -K $encrypted_95320be81f38_key -iv $encrypted_95320be81f38_iv
-in $TRAVIS_BUILD_DIR/id_ed25519.enc -out /tmp/id_ed25519 -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/id_ed25519
- ssh-add /tmp/id_ed25519
- cd $TRAVIS_BUILD_DIR/dist/frontend-subjects
deploy:
- provider: npm
email: [email protected]
skip_cleanup: true
api_key:
secure: hBGLyDmzx4MC7j2aKfX0kmrwq7l00scvMFKdDWet31bjFHo/88jLHggxCuSusYPffTmoudG3ZiONdPib+0pdRGa+QmeqBrQCmpF+jBPzrfQyYk+hc1pOmTvcZyORjPzP16F1Su8Tu5eKBhbkLxo2CvYG3wXeHwu1MCtNFlvNL2PUHcKgtFbG7Ysx1e3OYifjLwMZUt/fian/gf5snmX2czYxxgyoSfEfxxRIagghjFTfTE3GGom2od0eiSeENWS7iH/51Na8VZJEpwz8CpI1246ZNMceE6+CPp4Jigb6d991MwI5I39oyl9vOUYXHbdbkJg704VXZ0ALW6/Be7wqL+l1ODdzKCG/z3r/PhTSD00S7PTuj8NcBHsr7O5HW1T78XGTU+7roXEp2Z6HsPfTjpCau95O2xgLEHzRWoXm8wjHc1QEmAAR8KQe4CEHKLsq/ZIhyLVxjt1Rpgg8AsdOofZ/Ai+ZIRE2bMekE42cGR851hSbQPJ55UELYiz806M/b4Eurd7ApCKzRPiBmx+yCl33p/+hSxGqLyM2ni44Zmpgfy5AZF4QlCVTSgvGlZOzNH7qF+0ZxFRt+9ke4X9W5Gwc99zix0HKv2ZCpK3COrY7yCVljB+cZ8ZEo5wnve+C1jGEvQPRn4ILmEfwpDacPvOcS7wZLdlP8CqISVSwd30=
on:
repo: mralexandernickel/frontend-subjects
- provider: script
skip_cleanup: true
script: rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/dist/frontend-subjects-demo/* [email protected]:/var/www/frontend-subjects-demo
on:
branch: master
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: "$GITHUB_TOKEN"
# keep-history: true
# local-dir: dist/frontend-subjects-demo
# on:
# branch: master