Skip to content

Commit

Permalink
Make GitLab CI work.
Browse files Browse the repository at this point in the history
Switch to using openjdk image instead of sbt-firefox-chromium.
The latter defines an ENTRYPOINT, which doesn't work with GitLab CI.
gitlab-org/gitlab-ci-multi-runner#1421

Switching to openjdk image requires installing the dependencies
manually. :(
  • Loading branch information
gshakhn committed Jan 24, 2017
1 parent 21f2fa8 commit 3432a27
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .gitlab-ci.yml
@@ -1,6 +1,15 @@
image: gshakhn/sbt-firefox-chromium
image: openjdk:8-alpine

variables:
SBT_VERSION: "0.13.13"
SBT_PATH: "/opt/sbt-launcher-packaging-${SBT_VERSION}/bin"

before_script:
- apk --no-cache add bash curl
- mkdir /opt
- curl -SL https://dl.bintray.com/sbt/native-packages/sbt/${SBT_VERSION}/sbt-${SBT_VERSION}.tgz | tar xz -C /opt/

scalastyle:
stage: build
script:
- scalastyle
- $SBT_PATH/sbt scalastyle

0 comments on commit 3432a27

Please sign in to comment.