forked from OWASP/NodeGoat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (33 loc) · 768 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
38
39
sudo: required
language: node_js
services:
- docker
- xvfb
node_js:
- v8
- v10
- v12
## Missing dependency for Cypress https://github.com/cypress-io/cypress/issues/4069
addons:
apt:
packages:
- libgconf-2-4
## Cache NPM folder and Cypress binary
## to avoid downloading Cypress again and again
cache:
directories:
- ~/.npm
- ~/.cache
override:
# use the new "ci" command for fastest installs on CI
- npm ci
- npm run cy:verify
before_script:
## we use the '&' ampersand which tells
## travis to run this process in the background
## else it would block execution and hang travis
- docker run -d -p 27017:27017 mongo:4.0
- docker ps -a
- NODE_ENV=test npm start -- --silent &
script:
- npm run test:ci