.gitlab-ci.yml: pulling dependencies is done in make step

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
This commit is contained in:
Pierre-Alain TORET 2018-06-08 10:33:45 +02:00
parent de3cac7a3a
commit f9a269de95

View File

@ -6,6 +6,8 @@ stages:
build-src: build-src:
stage: build-src stage: build-src
image: debian:buster image: debian:buster
variables:
GOPATH: $CI_PROJECT_DIR
script: script:
- apt update - apt update
- apt install -y curl gnupg git make golang - apt install -y curl gnupg git make golang
@ -13,7 +15,7 @@ build-src:
- apt update - apt update
- apt install -y nodejs - apt install -y nodejs
- npm install -g html-minifier uglify-js sass - npm install -g html-minifier uglify-js sass
- cd api && go get -v . && cd .. - mkdir -p src/gitlab.com/commento && cd src/gitlab.com/commento && ln -s $CI_PROJECT_DIR && cd $CI_PROJECT_NAME
- make devel - make devel
- make prod - make prod