-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (54 loc) · 1.17 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
stages:
- lint
- test
- security
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- build/
eslint:
image: node:14.17.6
stage: lint
script:
- npm ci
- npm run lint
allow_failure: true
solhint:
image: node:14.17.6
stage: lint
script:
- npm ci
- npm run solhint
allow_failure: true
test:
image: node:14.17.6
stage: test
script:
- npm ci
- apt-get update && apt-get install -y gawk
- npm run compile
- npm run coverage
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:
paths:
- coverage
expire_in: 10 days
reports:
cobertura: coverage/cobertura-coverage.xml
slither:
image: python
stage: security
before_script:
- apt install curl
- curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
- export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" --no-use
- eval "[ -f .nvmrc ] && nvm install 14.17.6"
- eval "[ -f .nvmrc ] && nvm use 14.17.6"
- npm install
- pip3 install slither-analyzer
- pip3 install solc-select
- solc-select install 0.8.0
- solc-select use 0.8.0
script:
- slither . --print human-summary