forked from warpdesign/react-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (36 loc) · 878 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
35
36
37
os:
- mac
- linux
- windows
jobs:
allow_failures:
- os: windows
language: node_js
node_js:
- 11.10.1
# if using Ubuntu 16 need this library
# https://github.com/cypress-io/cypress-documentation/pull/1647
addons:
apt:
packages:
- libgconf-2-4
before_install:
- |-
case $TRAVIS_OS_NAME in
windows)
set NODE_OPTIONS=
;;
esac
install:
- npm ci
- cd e2e && npm ci && npm run build
before_script: npm run server & npx wait-on http://localhost:8080
script:
# ## print all Travis environment variables for debugging
# - $(npm bin)/print-env TRAVIS
# run e2e tests
- npm run cypress:run --config video=false
- cd .. && npm test
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
- kill $(jobs -p) || true