forked from Alfresco/generator-alfresco-adf-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (56 loc) · 1.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
sudo: required
dist: trusty
addons:
chrome: stable
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
language: node_js
sudo: required
node_js:
- "8"
# install: npm install
#script:
# - npm run test
#cache:
# directories:
# - node_modules
jobs:
include:
- stage: generator
install: npm install
script:
- npm run test
cache:
directories:
- node_modules
- stage: acs
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-acs-template && npm install && npm test -- --watch=false
- stage: acs-e2e
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-acs-template && npm install && npm run e2e
- stage: aps
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-aps-template && npm install && npm test -- --watch=false
- stage: aps-e2e
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-aps-template && npm install && npm run e2e
- stage: acs-aps
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-acs-aps-template && npm install && npm test -- --watch=false
- stage: acs-aps-e2e
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: cd app/templates/adf-cli-acs-aps-template && npm install && npm run e2e