summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-11 19:08:35 -0600
committermo khan <mo@mokhan.ca>2019-08-11 19:08:35 -0600
commit631a31530bb1c02e8e89d746eb3d363e717c44a3 (patch)
tree837aa3a728a471004f0fdd2e939c4e6f93148deb /.gitlab-ci.yml
parentc81dad47326be5a72e1f594d850cef84d3a1e0a3 (diff)
build image and test in that
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 01b5a89..08706cc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,30 +1,34 @@
-image: maven
+image: alpine:latest
stages:
+ - build
- test
- release
-before_script:
- - apt-get update && apt-get install -y locales
- - echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
- - locale-gen
- - export LC_ALL=en_US.UTF-8
+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:
- - apt-get install -y ruby-full
- - gem install bundler:'~> 2.0'
- bundle exec rake publish
artifacts:
paths: