forked from HathorNetwork/hathor-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (31 loc) · 833 Bytes
/
.gitlab-ci.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
# Documentation: https://docs.gitlab.com/ce/ci/yaml/README.html
image: node:8.9.0
# And to cache them as well.
cache:
paths:
- node_modules/
stages:
- build
- tests
build:
stage: build
only:
- dev
- web
before_script:
- npm install
script:
- CI=true npm run build
tests:
stage: tests
only:
- dev
- web
before_script:
- npm install
script:
# Using --forceExit because could find what's keeping jest from exiting and --detectOpenHandles does not show anything, so might be a bug from jest
# In this issue lot of people are having this (https://github.com/facebook/jest/issues/1456)
# Like here: https://github.com/facebook/jest/issues/1456#issuecomment-414250666
- CI=true npm test -- --forceExit --coverage
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/