-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (41 loc) · 2.26 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
language: node_js
node_js:
- '16.20.2'
env:
global:
- MATTERMOST_CHANNEL=publication
# REGISTRY_TOKEN(editor=cozy, app=boursorama)
- secure: Cqxy7CajOVN86auxDnib5h9ThAk2lOXAWRKUAY+yxXkuulC8D/ScZt5l18gVAzrQiRSlOoG0Tn3eeNyZ+Ey5hUzFiBW7NPtlBCy09N5MqBg7L3oE7HvqNzsteT7sKih82ytgU+nm/Dss30HGXCHoSeClDwYJzjEO2ROMYX3A5SoON74mcI1JjabJR3WaEP4btu2YDuir5bgYhg0DIz06isLL5cGo707NKWXNyJHJGQe/00gHtc+TpAfc99Ek0ahmaTyre/eS0ftcNLd+iA7ywVygYgYXA0Zz7eLZn8elI2++1dAdadUnGcYDxeCoChl0HQTuVuE5jtCYGL0kIA5pme15CIxFRlv/X3NE7nndQEsqO9rYBhjevIsD6Uu65amtJKY3sc6iefuXcxybsvzu2FZvSlIsijx6PdDYUf92kxdOmX4qprgNlllK9QGu349WtPcetsAQKNAGszD+sHgvFOBHHBzcV3W7je3KQyYF8eQuAMXGQezRuxsKEw8MB6cSSOKNdidZicv6NIm1aA7ZLZI1nUIwNU6rMoJ0DRaMPC9q3KTFydD4IPmgsv++s3KUnY0QEpleLlYPJZIhWkdFpiMpvLj/3t3OxZS6xAYuVvyNwnq4LHFHr4ZuuKC+xA1yy4LgIBntXc8dG37vNuoYay3hF6PLa341MEDO15coATA=
# MATTERMOST_HOOK_URL
- secure: na5nsJuTdTQmEIwBp7EK4BZQPXWXaXm5GuqZlJ2zpc18DDayZEGXuopofsIdkTiRzRkW5m8nyq5Y3UUlmN0UyYaF6MzPMwFfCcd37ybk6kMuYsQkQNBPpJWNgvzijE+owVFUhaL5DeOdhVXu+IqXu5gHQXpfp26f9JjATA1TOvenOfJ43E3UXIe3yvdDLTIVvn3RBlaOQix48xR2kAHB7Jc0sJMsmTRhbkbXTJQjTT2hnUGQZX+gUfGbRN6z2Z4JT1uTNgnhFpYsxQN5fOjTSoV5Z/CtyxSN3CndPI/rkJrxjseQUqQZ6LhCJKrtrdYpi21yRgKmmp1oj7CjOMUMSlTKUPx7WbPZsoi+QDVpe8n+nPM8brW3usWBwjzy1zTmOzQlBUDDVQycQzkK3xlbMw9xut9oZX/5DsD/d28dh7579Y0PmBZ5KX7Ee/en2rSM19A6MIxH4HivWGXTALoSqT2DQLzcP1mtaAXR6fmnNbsEmghrd21g6BwVD6OS8MxxQZXrs+qDE2kAhTTDUdZHZNv45kJf+28iB0xffUyjJwmhjtXbfmzTpOPQrQfWhN9fztvVwcQhZPnO89hjCQHmyjX1WTOxYUSYeqfaOyLIFDmYovsHlbLVeMeL1X9Ya39htT7cs46zvGGhBt0lZeK2fPQ0lhR7+0HZERNYb27Flbw=
cache:
yarn: true
directories:
- node_modules
branches:
except:
- build
- build-debug
script:
- yarn lint
- yarn build
deploy:
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish --space selfhosted
on:
branch: master
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish --space selfhosted --postpublish mattermost
on:
tags: true
before_install:
- openssl aes-256-cbc -K $encrypted_8ebb1ef83f64_key -iv $encrypted_8ebb1ef83f64_iv
-in github_deploy_key.enc -out /tmp/github_deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/github_deploy_key
- ssh-add /tmp/github_deploy_key
after_deploy:
- rm /tmp/github_deploy_key
- ssh-add -D