-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
89 lines (81 loc) · 1.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
image: ubuntu:16.04 #luongnguyen/oyente
stages:
- build
- test
#- deploy
- release
# - publish
before_script:
- apt-get update && apt-get install -y git python g++ make curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash
- apt-get install -y nodejs
- npm install -g yarn
build:
stage: build
tags:
- dokcer
script:
- yarn
- yarn build
- yarn lint
#- for f in ./contracts/*.sol; do python /oyente/oyente/oyente.py -s $f; done
except:
- tags
test:
stage: test
tags:
- dokcer
script:
- yarn
- yarn testrpc &
- yarn test
except:
- tags
release:
stage: release
tags:
- dokcer
script:
- git config --global user.email "[email protected]"
- git config --global user.name "walter.strametz"
- npm i -g @hutson/semantic-delivery-gitlab
- semantic-delivery-gitlab --token $GITLAB_AUTH_TOKEN
- npm install -g npm-publish-git-tag
retry: 1
allow_failure: false
only:
- master
# publish:
# stage: publish
# tags:
# - dokcer
# script:
# - git config --global user.email "[email protected]"
# - git config --global user.name "walter.strametz"
# - npm i -g @hutson/npm-deploy-git-tag
# # uses NPM_TOKEN from gitlab
# - npm-deploy-git-tag
# allow_failure: false
# only:
# - master
#deploy:
# stage: deploy
# image: docker:latest
# services:
# - docker:dind
# tags:
# - dokcer
# before_script:
# - apk add --no-cache nodejs nodejs-npm git python g++ make curl
# - npm install -g yarn
# - yarn
# script:
# - node scripts/waitForEthSyncTest.js
# - echo "{\"privKey\":\"${PRIVATE_KEY}\"}" > keys.json
# - ./node_modules/.bin/truffle migrate --network test
# - ./node_modules/.bin/truffle networks
# artifacts:
# paths:
# - build/
# only:
# - maste