diff options
author | Joris | 2016-11-27 18:38:58 +0100 |
---|---|---|
committer | Joris | 2016-12-20 23:05:43 +0100 |
commit | b780f6f660cc5b2ff2b1ca3884871002823256a1 (patch) | |
tree | c530166206743be1925688f8b3319c630208a695 /.gitlab-ci.yml | |
parent | 0aab7be2cf2cf73c62b305450902cdc3fe77cd4a (diff) |
Init
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b8926a0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +image: java:8 + +before_script: + - apt-get update -y + - apt-get install apt-transport-https -y + # Install SBT + - echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list + - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 + - apt-get update -y + - apt-get install sbt -y + - sbt sbt-version + +pages: + stage: deploy + script: + - sbt clean fullOptJS + - mkdir -p public + - cp target/scala-2.12/classes/index-prod.html public/index.html + - cp target/scala-2.12/classes/reset.css public/reset.css + - cp target/scala-2.12/reading-advice-opt.js public/main.js + - sed 's/src="[^"]*"/src="main.js"/' -i public/index.html + artifacts: + paths: + - public + only: + - master |