-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.99 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
language: node_js
node_js: '8'
sudo: required
before_install: npm install -g greenkeeper-lockfile
install: npm install
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
before_deploy: ( cd functions && npm install )
env:
- GK_LOCK_COMMIT_AMEND=true
jobs:
include:
- stage: test
name: "Integration Tests"
script: npm run test:integration
- name: "Unit Tests"
addons:
chrome: stable
firefox: latest
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script: npm run test:unit
- name: "E2E Tests"
before_script: npm run build
script: npm run test:e2e
- stage: deploy
name: "Firebase PRPL-Server"
if: tag IS present
before_script:
# declare environment
- echo "export const apiroot = 'https://www.duttweiler.de/api/v1/'" > environment.js
- echo "export const build = '$TRAVIS_TAG'" >> environment.js
# replace dash with double-dash for shields.io version badge
- sed -i "2s/-/--/g" environment.js
script: npm run build:firebase
deploy: &firebase
on:
tags: true
skip_cleanup: true
provider: firebase
project: duttweilerappgcm
message: $TRAVIS_TAG
token:
secure: XfHgmcuN3urCFSeXVoaEDIF5z4nlQwbBfbisJRcLFZDIclKdkyzxtdQWFuRrZU32OgPtcq9ESR2Gy72Xw7FB5q9MLX0rD8slI61C+nf6U5ibuhlwBUgNCm0PuYBF/yfs/PiVg2UD+RtO45ZvwAJSbNIxxg1FDuzF+zj70ldDuEIWFwjRf+JbrmzsdFvsCcU2elDWPWGJOpr8rVYNl0jfEsq5cKtez/3f6NpkIWce9U4pXegQAqpQROXhwO7412BhNPKcunk0uvRe+5nZ/IhkssEWhVLJaAKIlJCze9JJ/sZrgQhV0a0BPDYCgTMxZvTualFjnzr55ALzYZpuXB3jcoj//kwUqG4Ug3Qk3ETqwfGADFr0t6ml5XBeOzPNftcgUoFWwQ9hFbvZr3ylf1kzM/XrSWOS9phSCFpgeHntgkvkXj10SfLzjKaI9ZdPcTLoX6ekLfnjd9nIO3bAAqHU/nlVunGIEK38V9Z4JY2MAXhiPwec8ZIWKedTahG+dhLwFV0FWBNLR4anmmmGG7cvqwtcUb+ml/ymdeUjDTLf0KBipNPbIjDUpO4lBVzWbvizuZPcHXBmsxsDbtCd6ZFsYHpC4EjdsaSOHH2qsb/FeaUhutxpV6p7Oj+MTeDArQxZFYwHk8GGTDgQ95KnRFs5hK3OLBo7ZyCpyQEf1Qn3UHw=