-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
40 lines (34 loc) · 992 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
image: centos:7
before_script:
- yum -y install git make
- mkdir -p /go/src/github.com/crankykernel/cryptoxscanner
- cp -a . /go/src/github.com/crankykernel/cryptoxscanner
- curl -o /tmp/go.tar.gz -L https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz
- (cd /usr/local && tar xf /tmp/go.tar.gz)
- curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
- export NVM_DIR="$HOME/.nvm"
- . ${NVM_DIR}/nvm.sh
- nvm install --lts
- nvm use --lts
build:
script: |
export GOPATH=/go
export PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
go version
go env
go get -u github.com/golang/dep/cmd/dep
cd /go/src/github.com/crankykernel/cryptoxscanner
dep ensure
go build
(
cd webapp
npm install
./node_modules/.bin/ng build --prod --aot
)
ls -l cryptoxscanner
ls -l webapp/dist
# make dist
# cp dist/*.zip ${CI_PROJECT_DIR}
# artifacts:
# paths:
# - "*.zip"