image: alpine:3.7 stages: - build - test - deploy build: stage: build services: - mongo:latest script: - apk add --update nodejs nodejs-npm - npm install mocha -g - mocha --exit - git submodule init - git submodule update - mvn install artifacts: expire_in: never paths: - target/clif-webui-*.war test: stage: test services: - mongo:latest dependencies: - build before_script: - docker info script: - docker run -t -i maven latest -c bash - docker container run alpine ls -l - cat /etc/os-release - apk add --update npm - npm install - npm i mocha -g - mocha --timeout 10000 --exit pages: stage: deploy only: - master dependencies: - build script: - mkdir -p public/download - cd public/download && ../../gitlab-pages/bin/download-page.sh > index.html - cp -a ../../gitlab-pages/images ../ artifacts: expire_in: 1h paths: - public