forked from cozy/mespapiers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (47 loc) · 3.47 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
language: node_js
node_js:
- '10'
branches:
only:
- master
# tags
- /^\d+\.\d+\.\d+(\-beta.\d+)?$/
env:
global:
- MATTERMOST_CHANNEL='{"dev":"app---mes-papiers","beta":"app---mes-papiers,publication","stable":"app---mes-papiers,publication"}'
# MATTERMOST_HOOK_URL
- secure: "M9AsiCREqvJIMNl79X+9WShz1KqBg3fuakfdOM4gu7lSGe5vdP5JvoCZdAgQSzuGmLv3uBG4qPb/5Zenf1alHPFQczwxJCove3sMdsRcc7TvvnexfP/UzTPsj/nFiEQ5ikIUI3yZcOWFce48SqvlLfgMtapeGrDvwixz1prcV7c0+D3fiKLdv900RIo9lf/Pxy4kh9IlIO5/lpt7MvWX+212tliM68VRB+3Tml24xLZt1eAIPGva6cNy8Jsrmpc88ukLyCHn9NU6/2qhz/Idwgbcy8lPRnzIUdat++OJEnVP+KSpEeia3VuUAvcZIUpiVn1BVgFNqqe5LPLHPm79rjf4faCjUJl3BGwkdB+4vNYqVFzhO1sviv1KMU4IM3iEBg1rYOK/ENTON0Mo66HU6da4vKxmql4wpts3I2q9xAkorkbmKPiwigRegFu/3B0k4QfvxVUN+9/F+UOql054rJr+QPtjwM3ZhpK7okkmkZVl4sWlsfugBoP2VoaH7XA8EvNGhsAR9lvQZAYhF3oVkqpffPbX3+TIw9BMs7pvGm/+/o1pseFea1f3aupE3uc8CpmTpvJ9e+skxOARjJZuemUADshjxsPVyKH5g3wbeI6OvINYUPnDDcc6uofo1+v3hBm8mRcvy/dGEHMmOmRQ6zho1hKc9z81FUOCPn3zY/s="
# GITHUB_TOKEN
- secure: "FWk9rCl7I3wlwYWLVNOfyX3lADAHwi93qoP2TgyNkyyXab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PmUILeyWWEzfzEq2GIy5PfAl3k6Gf3Tiq4d1ephrj2QMqHtsSW8Cag9s+aLWxAKtCY0ATlz6VjxIoL0Mi96PFRxwPc0cX8f6iPOhAKERRo4NTrN4o4j5Txp+rLBPCY85kwVWSWs+E33eVkIgHo7i3zWU9UME6TWSxb9t/83fCb8iqRnIrsK6ptIeLIQABl+JncQCT0lrsy8c+fQn7vtaYuF2/h9t5s/iJDqFxjIiPCTHO8NeiLQtCNT+dBEvaQaiw+kPU="
cache:
yarn: true
directories:
- node_modules
script:
- yarn lint
- yarn test
- yarn build
before_install:
- 'if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then openssl aes-256-cbc -K $encrypted_fdd8b84f377d_key -iv $encrypted_fdd8b84f377d_iv -in id_rsa_downcloud_mespapiers.enc -out id_rsa_downcloud_mespapiers -d; fi'
- 'if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then eval "$(ssh-agent -s)"; fi'
- 'if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then chmod 600 id_rsa_downcloud_mespapiers; fi'
- 'if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then ssh-add id_rsa_downcloud_mespapiers; fi'
before_deploy:
- yarn add cozy-app-publish
deploy:
- provider: script
repo: cozy/mespapiers
skip-cleanup: true
# deploy the build on a build branch and publish to the Cozy registry
script: DEPLOY_BRANCH=build && yarn deploy && yarn cozyPublish
on:
branch: master
- provider: script
repo: cozy/mespapiers
skip-cleanup: true
# publish stable or beta versions using Github Releases (git tag)
script: DEPLOY_BRANCH=build && yarn cozyPublish
on:
tags: true