-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (42 loc) · 2.23 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
language: node_js
node_js:
- '16.18.1'
env:
global:
- MATTERMOST_CHANNEL=publication
# REGISTRY_TOKEN(editor=cozy, app=google)
- secure: S3PdlR02T7JuSdKxKwkUl2KAefyl/tGKFp8yunQrYn6HA6POqBwQZQ17Rguho3le21MXwG23NABVH31rZBsj2U7pivNfwPFKlOWPje1ehB2yMb7kBX7TRDS/iSHOg38UXo0yfkOwFeN02IIJKuKhFfuE+n0SQisWwGHiel8pMAdIZixmRuLQ5x26yTU2EYxvuM0SK8wF9tzp+hajeq4q7zz67OQDmNxsyfQw1htTsiZjFnY/bQq/3pBeGfA3JA1i7T+51DXnQU7w1hL86sbkGKzzB1q0rqvtsJaMaj+qzNICN2H4TyNwd6G0jyBBebGpcaBfcuKeLp6AgEMIgtOYRf16R1IIHI8o1VqQaTS1v/27KKI3PPeyhnEvQl/s6w/Tet0NnbT3B3WKPmbwwoQ4V046DWUrHYVke3vJmrNMLjMs6qitAFLRVYLFhr42ccsTBqyeAG3CzjrL2iElcsEPWFk9hAHhUqBnVqFOBsmSVZPolHeVc2ewNMKbPsWbsN6CQTr8G08ez+d5+fTD1UTdye88ezLpdc0G8HFkpNPJ6zQGuZTzZ7AOed7KWLByv+bSlX4hBkVXuKJsej+Vicd+bdI0YHhZXCaLmOcO28htoF8fw1NWFIzTm5JCKgCLIeTqTOZneiQO7PSpqgGh9HNceYAtvbaMNUNPM2vle9iDetY=
# MATTERMOST_HOOK_URL
- secure: qT7Ix5HXivhnzfNtmPlNnL3hSLz6sMZPn0MpYF1+whk8nhiZiQyNsGC1h6TjqUdXuocEgiTkRLzYliB0bYuMLqi2rwmFdMkxhZmdFZxbVzwNLLfFYFBJPCOJFWr6M+RBPxN+t/jJpp5hdVgcVXEM3SRjYW1fl8CQyDOIMOFESot3lBBPwRTAVU+xdfuILNuwAbHNXTjFs6SHGIGG9chs8b0tx0BytvNU0Uu8BFIYf7CqImWRo93rbcrR58GFTgYa/Z7tw4U6kaW3wsExSgMmP/A2n8q3dCrNbmAzwElKXTBegpdrQ2dTjH0NXj735MOtvgdwSgI6QFf63KBoH+iAK0TYYsTPnAoLC/zHvRWkFWMl/emUyq4GZi8AzJGEobEiZcUsj1SxcphZ3EgrnynLHYRAXVJqZaAn2BooUe5zCxIfA8OgPcojzgRFCuq/T/o1NS81gHI4BgEHZo5XIzehFoLr2jVPMUrL4ixSuWr2oSfOyUoefM7yKkTGgc3a+XUUtpSA7LAdrxG35fLlah4uVH5wag8OZq56/AYHWmg5QuJiDd9BArazNYO0/9dC0HLujYp/egVO5pPo5UxaeBuSRsxm2L4ZxqWX4n2Il/YqfrDL0DwAKWTCuulO51thrxetLbjXHifP5TWEIF0+Zg6dDqtDAPPxQWRJNOMV7ilb3HI=
cache:
yarn: true
directories:
- node_modules
branches:
except:
- build
- build-debug
script:
- yarn lint
- yarn jest
- yarn build
deploy:
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish
on:
branch: master
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish --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