forked from vmware-archive/clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (46 loc) · 1.11 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
language: node_js
node_js:
- "6.0"
env:
global:
- CXX=g++-4.8
matrix:
- TEST_SUITE='test'
- TEST_SUITE='css:test --set set1'
- TEST_SUITE='css:test --set set2'
- TEST_SUITE='css:reference --set set1'
- TEST_SUITE='css:reference --set set2'
sudo: required
dist: trusty
group: edge
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- google-chrome
packages:
- g++-4.8
- google-chrome-stable
artifacts:
paths:
- $TRAVIS_BUILD_DIR/screenshots.zip
- $TRAVIS_BUILD_DIR/gemini-report/
- $TRAVIS_BUILD_DIR/selenium.txt
cache:
apt: true
yarn: true
directories:
- node_modules
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
before_script:
- npm install -g gemini
- npm install -g html-reporter
- npm install -g selenium-standalone
- selenium-standalone install
- xvfb-run --server-args="-screen 0, 1600x2400x24" selenium-standalone start > selenium.txt &
- sleep 5
script:
- gulp $TEST_SUITE # run unit test, css regression, and css reference in parallel
- zip -r screenshots gemini/screens/