forked from PayString/paystring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (43 loc) · 1002 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
38
39
40
41
42
43
44
45
46
47
48
stages:
- test
variables:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: database_development
POSTGRES_HOST_AUTH_METHOD: trust
DB_HOSTNAME: postgres
services:
- postgres:12
lint:
stage: test
image:
name: node:12
before_script:
- rm -rf .npm
- npm i --cache .npm --prefer-offline --no-audit --progress=false
script:
- npm run lintNoFix
code coverage:
stage: test
image:
name: node:12
before_script:
- rm -rf .npm
- npm i --cache .npm --no-audit --progress=false --prefer-offline -g nyc codecov
- npm i --cache .npm --no-audit --progress=false --prefer-offline
script:
- npm run build
- nyc npm test
- mkdir coverage
- nyc report --reporter=text-lcov > coverage/coverage.json
- codecov
link checker:
stage: test
image:
name: golang:1.14-alpine
before_script:
- apk add git
- export GO111MODULE=on
- go get -u github.com/raviqqe/liche
script:
- liche -r ${CI_PROJECT_DIR}