forked from Inist-CNRS/lodex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (47 loc) · 1018 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
sudo: required
addons:
chrome: stable
language: node_js
services:
- docker
node_js:
- 12
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
env:
global:
- NODE_ENV=test
- EZMASTER_PUBLIC_URL=http://localhost:3000
- NODE_OPTIONS=
# dist: bionic
cache:
npm: true
directories:
- node_modules
- ~/.cache/Cypress
- ~/node_modules/.cache/
- ~/node_modules/.cache/@babel/register/
branches:
only:
- master
install:
- make install
stages:
- name: test
jobs:
include:
- stage: test
name: 'Unit Tests'
env: NODE_ENV=test
script: make test-unit
- stage: test
name: 'API E2E Tests'
env: NODE_ENV=test
script: make test-api-e2e
- stage: test
name: 'E2E Tests'
env: NODE_ENV=test
script: make test-e2e