forked from webdriverio-boneyard/webdrivercss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (25 loc) · 1.13 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
notifications:
email: false
language: node_js
node_js:
- '0.10'
before_install:
- sudo apt-get update
- sudo apt-get install imagemagick graphicsmagick libcairo2-dev
before_script:
- "npm install -g bower http-server"
- "cd test/site && bower install && cd ../../"
- "curl -O http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar"
- "java -jar selenium-server-standalone-2.43.1.jar -host 127.0.0.1 -port 4444 &"
- "http-server -p 8080 &"
- "if [[ $WEBDRIVERCSS_COVERAGE == '1' ]]; then ./node_modules/.bin/istanbul i lib -o lib-cov && cp lib/getPageInfo.js lib-cov && cp lib/makeScreenshot.js lib-cov && cp lib/documentScreenshot.js lib-cov && cp lib/viewportScreenshot.js lib-cov && cp lib/startSession.js lib-cov && cp lib/setScreenWidth.js lib-cov; fi"
script: "npm run-script travis"
after_script:
- "if [[ $WEBDRIVERCSS_COVERAGE == '1' ]]; then cat lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi"
env:
matrix:
- MOCHA_REPORTERS: "spec"
WEBDRIVERCSS_COVERAGE: "0"
- MOCHA_REPORTERS: "mocha-istanbul"
ISTANBUL_REPORTERS: "lcov"
WEBDRIVERCSS_COVERAGE: "1"