Commit f060443c authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Teste l'utilisation via NPM et Docker en CI.

parent 2f28ecc1
......@@ -6,12 +6,13 @@ default:
interruptible: true
stages:
- test
- lint
- build
- test
- deploy
lint:
stage: test
stage: lint
tags: [docker]
image: node:12-buster
variables:
......@@ -39,6 +40,23 @@ docker:
- docker run --rm "$IMAGE" build
- docker push "$IMAGE"
npm-test:
stage: test
image: node:12
before_script:
- npm install --global 'git+${CI_REPOSITORY_URL}#${CI_COMMIT_REF_NAME}'
script:
- prezbuilder build src public
docker-test:
stage: test
tags: [dind]
before_script:
- wget "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_REF_NAME}/bin/prezbuilder-docker?inline=false" -O /usr/local/bin/prezbuilder-docker
- chmod a+rx /usr/local/bin/prezbuilder-docker
script:
- prezbuilder-docker build src public
pages:
extends: .prezbuilder
variables:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment