-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
40 lines (38 loc) · 927 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
40
language: node_js
os: linux
sudo: required
dist: trusty
node_js:
- node
before_install:
- .travis/install-docker.sh
stages:
- Node.js Tests
- name: Browser Tests
if: type = push
jobs:
include:
- stage: Node.js Tests
env: NAME="Code Linting"
script:
- npm run format:check
- env: NAME="Build"
script:
- npm run build
- env: NAME="Unit Tests"
script:
- npm test
- env: NAME="API Tests"
script:
- docker build test/api/ &&
docker-compose -f test/api/docker-compose.yml up -d --build &&
$(npm bin)/wait-on http-get://user:pass@localhost:5171/v2.5.0/info &&
npm run test:api
- env: NAME="Coverage Report"
script:
- npm run build:test
- "$(npm bin)/nyc --reporter=text-lcov $(npm bin)/mocha --opts mocha.opts test/index.js"
- "$(npm bin)/nyc report --reporter=text-lcov | $(npm bin)/coveralls"
cache:
directories:
- node_modules