summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 08706ccadda3e45e9ea3498eab8fdb9c4dfcb35b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: alpine:latest

stages:
  - build
  - test
  - release

build:
  image: docker:stable
  stage: build
  script:
    - docker info
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker build . -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

test:
  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
  stage: test
  script:
    - mvn verify

doc:
  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
  stage: test
  script:
    - mvn javadoc:javadoc

publish:
  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
  stage: release
  script:
    - bundle exec rake publish
  artifacts:
    paths:
      - pkg/*.tar.gz