.gitlab-ci.yml 802 Bytes
Newer Older
1 2 3 4 5
image: docker:stable

services:
- docker:dind

Anton Fediushin's avatar
Anton Fediushin committed
6 7 8 9
stages:
  - test
  - documentation

10
dmd:
Anton Fediushin's avatar
Anton Fediushin committed
11
  stage: test
12
  coverage: '/Average: \d+\.\d+%/'
13
  script:
14
    - docker run -v$(pwd):/source antonmeep/dmd bash -c "
15 16 17 18
        dub test &&
        dub fetch covered &&
        dub test -b unittest-cov &&
        dub run covered -- -a source-tg-d.lst"
19

20
ldc:
Anton Fediushin's avatar
Anton Fediushin committed
21
  stage: test
22
  script:
23
    - docker run -v$(pwd):/source antonmeep/ldc dub test
Anton Fediushin's avatar
Anton Fediushin committed
24 25 26 27

pages:
  stage: documentation
  script:
28
    - docker run -v$(pwd):/source antonmeep/dmd bash -c "
Anton Fediushin's avatar
Anton Fediushin committed
29 30 31
        apt-get update -qq 2>&1 > /dev/null                     &&
        apt-get install -qq -y --no-install-recommends rsync  &&
        dub build -b ddox && cp -r docs public"
Anton Fediushin's avatar
Anton Fediushin committed
32 33 34
  artifacts:
    paths:
      - public
35 36 37 38
  only:
    - /^v\d+\.\d+\.\d+.*$/
  except:
    - branches