forked from cozy/cozy-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (89 loc) · 7.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
node-preset: &node # Used internally to share configuration, ignored by travis.
language: node_js
node_js:
- 12
- 16
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
branches:
only:
- master
# tags
- /^v\d+\.\d+\.\d+(\-beta.\d+)?$/
stages:
- prebuild
- build
jobs:
include:
- name: "Lint"
stage: "prebuild"
<<: *node
script: yarn lint
- name: "Unit tests node 16"
stage: "prebuild"
<<: *node
node_js:
- 16
script: yarn test
- name: "Unit tests node 12"
stage: "prebuild"
<<: *node
node_js:
- 12
script: yarn test
- &build-web
name: "Drive web"
stage: "build"
<<: *node
env:
- COZY_APP_SLUG=drive
before_script:
- yarn run cozy-ci-transifex
- scripts/decrypt.sh
script:
- echo 'pull langages' && echo -en 'travis_fold:start:txpull\\r'
- yarn tx
- echo -en 'travis_fold:end:txpull\\r'
- echo 'build' && echo -en 'travis_fold:start:build\\r'
- yarn build:$COZY_APP_SLUG:browser
- echo -en 'travis_fold:end:build\\r'
- &downcloud-cert if [ "$TRAVIS_SECURE_ENV_VARS" != "false" ]; then eval "$(ssh-agent -s)" && chmod 600 /tmp/id_rsa_travis_downcloud && ssh-add /tmp/id_rsa_travis_downcloud; fi # Needs to be inlined and not in a script to work.
- if [ "${COZY_APP_SLUG}" == "drive" ]; then yarn bundlemon; fi
#- echo 'create and deploy' && echo -en 'travis_fold:start:createanddeploy\\r'
#- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/create-deploy-test.sh; fi
#- echo -en 'travis_fold:end:createanddeploy\\r'
#- echo 'delete instance' && echo -en 'travis_fold:start:deleteinstance\\r'
#- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/delete-instance.sh; fi
#- echo -en 'travis_fold:end:deleteinstance\\r'
before_deploy:
- yarn add cozy-app-publish
deploy:
- &deploy
provider: script
repo: cozy/cozy-drive
skip-cleanup: true
script: yarn run deploy:$COZY_APP_SLUG
on:
branch: master
- <<: *deploy
on:
tags: true
- <<: *build-web
name: "Photos web"
env:
- COZY_APP_SLUG=photos
env:
global:
- MATTERMOST_CHANNEL='{"dev":"appvengers","beta":"appvengers,publication","stable":"appvengers,publication"}'
- secure: OLcPuglkDbRd9Xf8WmPAlAWTmdXDb+SNVc7+WKQjIap5Ej58BBTtaAYR8kzFKSWmvWWSnvKmOYJfOHvWIOfkzlwhGLnk/xUnCCsjWmWNjOmnL5x74gCbfEgyU+rIwr2c4/hpzjcywTVBIhL4l/Bxjn+Op+NepKYMNTKko9qB7fA+nDglX/t3VObC9kEXwXElOOgLHNpbfQLEJxdEqXm8hVMmfjA/wSQnX96GqWhKWqMMPyjAxwkxYXFa04AgeTV3C8y4x7YxiuaE8cKZfi+DYX8DyV0XdBVKJTBKTGEaTbotewmXf7F+zsZ6Rg46HvQskSmckMqMKzZfGLFKsVELt6wyNVdVwptWXfu9o2FrXvvHj1krOltN5kQPKLwSmQH4RSlekQ+JYpRN4e+w4dNazILk1pAMu7+EqBTdH5khkDxeA1LAfFVuZz3QP1/fczF/PXSMsaQa779XXKf8dsEP5S8dHjpCOLSI506E+sWa/tu1mSZoaL+jGPovhiygsPUjbjqUmim3Dz+22y2E8jGrEeIdTEcoDXrvjcqwSNvs2LXlgOtgjxP47Fb3Enk18BUpVL2LMTmwF8FbglfKOTOFHHuhT/lQjtptT6NBu0tKi8fcJ/jj3patUj2kbqo85FYext/VrPN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