forked from cozy/cozy-contacts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (73 loc) · 4.69 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
dist: focal
language: node_js
node_js:
- "12"
- "16"
env:
global:
- MATTERMOST_CHANNEL=contacts
# To generate a new key: travis encrypt GITHUB_TOKEN=<token> -r cozy/cozy-contacts
- secure: OnT+4EKE7IHu+1C/KTFpbsNJiD2fTM9bEfLxytIjSH35n8iWZyGdHLBlVrUulKLw47ir+g8T/FmEVJ9u+JSfYaq25oSoPUrcdW8Qs7RA+lg4W7LWGFXQeDaDC7KS1dRxQDc4eaRxfmbyDNEQG3HwsVbcaZXCrZQmwLGj5NWAseblvshLkhpYrdeMYIt+JUod63VUskdq8FVzm9AuFxBA1Ut4rwyX3wou5TDZMAgYwf1rlveAxkmZhYQQlt4j7Hyb5zT/K1S+zXKm4H+pqA/tvSbSRIw5JKFRf2tywom2Tn87BJ8mxYuMA2ANnsQ4c3jeJgQCNOk4oG5gUbPOa+JCN6RehHrsiGROExK0UY/e1uxFJfgyLmONBppJMFWO8Cn6Qxz5WQnrm/a5sE2RbZg+UuLi3WJIK6+yb/8P9XBPmZauBDLE6EOtUtx15Ti8WPZfuAbEBnJ7Q9gJv/5fpiMrgaYniohgU8cNs5qN6BsA/8JiY/f3lcVjLsPP4x+j0NzqKcUEXbMjXMGHWaQK/fizlcTH6moL8unlLNKkEmLEtg4w1x4cj3jvBMOiZsOfsGugqu0ZS2YRJqjpImVUThuPRoQkASR8mpq33PGXjBcKMPBol4K7c8DNrWKmwI1wgq/dl82wBDGIA3kAL6lrh4fBqzck2yqLrCdgH1MmolF14dI=
# To generate a new key: travis encrypt REGISTRY_TOKEN=<token> -r cozy/cozy-contacts
- secure: twmw7b05n3pvAYJr5V5PxQHdNY+4SP8W1WA9IWnUJmEuY8mi6L2Cxn08B8hrWEw6cPYg/fCkSWFkS1JZ+lmervSEipR7dPPP3aRMzDFe1p/9YcxNb9LdoRRAlxYRwreSvB7puVpr/kvXyWW2NzK1/OvU5o+HXJT5z3NJV0Zjw8v2IZ16vs1CyhbrmephAa2gEblzI1djRXDVK/9hGmT5shy7GVEmDgiufn13Dya1MiyPXLVvHoS6AzHFXCQKA6W6DsVjnYz5eQQAPd1dbT4hRlWrbtXDAY8ztFN15MeudFJn0/g7ZfH3iKs7+Wcr+5dwD5SxG3aFhgwQM0YE0ETVK5GQB+oyloGBHu3uuu0cPiIOfc+xbcHNT6a5igyfsfmiOtq+N5JeREp6codQDzByiFm0CxYNh2FUB4rU98kjkrT/F4UxbbnrHHPChqtGTvJ6RjfVuma3g2XioDnBsj0umNDCnHoa3GEGTq/wIAdhd6/B3i8MCNIq2eoLiJkVl83ITCjt7UdFZv6WHpVOvOL3iRsCS7gX7uresO0HXf6ws9FgRZm7P11jzsJIcHKBq4kXMS7XGIVLPMmB0R6OIh+kMXvtcQvSGXm0g+3hdCaF/hOHSmIUcrPFexvXoR5BH0kQvHMzijoY0552ySq5R3fY70a33S24aRA8QcuPMo7XXSo=
# To generate a new key: travis encrypt MATTERMOST_HOOK_URL=<token> -r cozy/cozy-contacts
- secure: "B24hol+bj40GwMUA+jNYxklQA+c+lDJLZGRgz/gknQ5MhDUkmPgCuACkVivzzRq48jlXt0uSjfi/avtGqDA78q5AiuG1cNgGDGA+BKdI2bqqAevQEJ11lgC/U4PaxUtAJqB5MgR79gBb0XsHAtYfpCCKoySiIVqW4nZlPEtiOZLXfjQ1HJvv89BBtPySJli6JbSMMHfU1giZkbIrOXZwUWrGSUktUVDACQh+knZdC6X4bzywUC0WMzlHhRphmJxhmbTKKaBmv/JgoN9Qj50imG66cWoRC5Afva5M/86kix9VgO1a3xJZk4uTBz3KusPSryYvqTnWZ3lGWRqCa/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node_modules
stages:
- prebuild
- build
before_install:
- sudo apt-get update
- sudo apt-get install python3
jobs:
include:
- name: Prebuild
stage: "prebuild"
node_js:
- 12
script:
- yarn lint
- name: "Unit test node 12"
stage: "prebuild"
node_js:
- 12
script: yarn test
- name: "Unit test node 16"
stage: "prebuild"
node_js:
- 16
script: yarn test
- name: Build
stage: build
node_js:
- 12
before_install:
- if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then openssl aes-256-cbc -K $encrypted_e51c23250372_key -iv $encrypted_e51c23250372_iv -in id_rsa_downcloud_contacts.enc -out /tmp/id_rsa_downcloud_contacts -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then eval "$(ssh-agent -s)"; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then chmod 600 /tmp/id_rsa_downcloud_contacts;
fi
- if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then ssh-add /tmp/id_rsa_downcloud_contacts;
fi
script: yarn build
before_deploy:
- yarn add cozy-app-publish
deploy:
- provider: script
repo: cozy/cozy-contacts
skip-cleanup: true
script: yarn run deploy
on:
branch: master
- provider: script
repo: cozy/cozy-contacts
skip-cleanup: true
script: yarn run deploy
on:
tags: true
after_deploy:
- yarn bundlesize