Skip to content
.gitlab-ci.yml 1.17 KiB
Newer Older
Tim Martin's avatar
Tim Martin committed

stages:
Tim Martin's avatar
Tim Martin committed
  - deploy

build:
  stage: build
  services:
    - mongo:latest
    - apt-get update && apt-get install -y docker.io
Tim Martin's avatar
Tim Martin committed
  script:
    - docker --privileged  run -i maven latest 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
    - git submodule init
    - git submodule update
Tim Martin's avatar
Tim Martin committed
    - mvn install

  artifacts:
Tim Martin's avatar
Tim Martin committed
    paths:
      - target/clif-webui-*.war
  services:
    - mongo:latest
  dependencies:
    - build
  before_script:
    - docker info
    - docker run -t -i maven latest -c bash
    - docker container run alpine ls -l
    - cat /etc/os-release
    - apk add --update npm
    - npm i mocha -g
    - mocha --timeout 10000 --exit


Tim Martin's avatar
Tim Martin committed
pages:
  stage: deploy
  only:
    - master
  dependencies:
    - build
Tim Martin's avatar
Tim Martin committed
  script:
    - mkdir -p public/download
    - cd public/download && ../../gitlab-pages/bin/download-page.sh > index.html
    - cp -a ../../gitlab-pages/images ../

Tim Martin's avatar
Tim Martin committed
  artifacts:
Tim Martin's avatar
Tim Martin committed
    paths:
      - public