forked from speced/respec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 866 Bytes
/
.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
# os: linux
# osx_image: xcode9
os: osx
language: node_js
sudo: required
# dist: trusty
node_js:
- v8
# before_install:
# # see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
# - "export DISPLAY=:99.0"
# - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 -extension RANDR"
# - export PATH="$PATH:$HOME/.rvm/bin"
# - sleep 3
install:
- yarn install
- yarn run build
- yarn run build:respec-w3c-common
addons:
firefox: latest
chrome: stable
cache: yarn
jobs:
include:
- stage: Tests
script: ./tests/test-build.js
script: yarn run pretest
script: yarn run test:headless
script: travis_retry karma start --single-run --reporters mocha karma.conf.js