-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
41 lines (41 loc) · 2.25 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=cragr)
- secure: JkHcSs8/TIwiFOTNwjPrI7IvJ5kdGynLIiLlgiJVqELXBevueGeQqiJ+kLZKjnLcqkBZTQXOeCuhsRh6e6nZ36ubZDJatgiEHy3O8kXZUiFJhV6V4Bq83QH1HELGNQ13WwOewRiFi+nMti2BgY9uV3tZaleSkqa5DPhcbhUoCIg1ge87aVO0uJGzEhQQXJs0STiUfBxvFcn0pcEOJKxx15o/dfHy3iY2g9JQZDgSb1kohFe8vAJ9vbRa7/OLVCzEG2Nz3YnBGgNqzsjMziQBfuSkg1VFg4yVDqExlSoFQOF5sIenpjLS/LvkMtiq/Dyquw0iHAUYckZURnSYUri3+gpG8VuEo2DYqnY7vsXYFAMWsRtx9JMn01UCZio1bQDoHJDgtvqiNUsUXPijckwmX0E5faosKPm6WzIgw/x7BBo4ujMh1ILsvGE+baQHDyLJW86oha12i0Fb6KOtXlps0Ri8bdzbker7i0GDfhZNwiKJyVbB5FNrX7FEds+I2x5AgdnJC5RHbYO2KJJDizlSiZsad2cy1+krgron6MAJ+c8GUgrP8nAkBgnZL/rZHbF30BHhAd7+PloT0ZLYl3zt2DL3WIoX4dNlCeuxvj7fkIS80YA4xkkPYXDj0t3tBYgUBMS+V+X8zOMs4BW2t6oc5U2yZdg9DPgZfwJfb52mGbE=
# MATTERMOST_HOOK_URL
- secure: K5E4D1xhVxla2X6/75KW/OsRaodbdmhEPTc0JjkqzS2yvnUCVKyGy7KK1dE0NtFwTpFJ16mKuL0U8dgeGHVI8d8G2ZfmTEZgnm3es8yXJMjuS3sgSBll2GDBrUrqt1T3lNGCC6eKYdCjpKF3C4bFLouCWJf530LoGP32QNU8N2FQ3VPeXZaC6SCDzHbZZU8UA8eArPA3aYDwkfucJY+WduuwGukORSkHu7b4cOu+US3pJ+XfkKpOEDEwgUHoZsmJahZmPcRwgIQisEWIydRMtLagoQtdOZXUllsjZ+84+CKD6Vi28y/uz/yjCugWx0P+H/B2XymyS00jQqZSfPSr9dPDUlmAFJPpqPWfHtGfso5vcLUTvT8rltBnx0cZeTwywqkgqTDEmUgowfwZte/2MahtHJc3pdM9aYPI92nzGMBlDPfPIwFXj6CU1ywihz9etDNe2urEne2rLgKcugr1QaFc4uyTIn+GEhO29/f9/haoQ9aandgTsqHQ/T3aHOgtUR4RtSrrjYcFYR8mkeEUirDZT2BPDlYY7gYhl8DCQBd4XUnQK8hZ/xNbV1HXD8ietCyMRJDP9c5h5jHjklAt/SlOkqQz3ztxUvkDTPvFiiWvc0+pvCG7vFRvJP12TS+ZjkIFduSXRvwBYjcp8jNaQZAKmjiWPnF2MxjN/SVOJos=
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