aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-01-16 02:52:51 +0100
committerDaniel Gröber <dxld@darkboxed.org>2017-01-16 10:21:50 +0100
commit50b1a0491ca4e2bc6fc537dcb44ff46d9d5e0839 (patch)
tree25a36e3c85f64dba2dab321d0dc0c40a4404bdf2 /.gitlab-ci.yml
parentdf4cf7f43816d747f440b8b8e10df5a2244a847a (diff)
Add .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..1a50ca3
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,44 @@
+stages:
+ - build
+
+before_script:
+ - cabal update
+ - mkdir -p ../cabal-helper.sdist
+ - ls -l ..
+ - cabal sdist --output-directory=../cabal-helper.sdist
+ - rm -f cabal.sandbox.config && cabal sandbox init
+ - cp cabal.sandbox.config ../cabal-helper.sdist
+ - cd ../cabal-helper.sdist
+
+after_script:
+ - rm -rf "$CI_PROJECT_DIR"/../cabal-helper.sdist
+
+.job_template: &common_script
+ script:
+ - echo $PWD
+ - ghc-pkg list
+ - cabal install --user --only-dependencies -j2 --force-reinstalls --enable-tests --enable-documentation
+ - which cabal
+ - cabal --version
+ - cabal configure --enable-tests
+ - cabal build -j2
+ - ghc-pkg list
+ - which cabal
+ - cabal --version
+ - ./dist/build/spec/spec
+ - cabal haddock
+
+job-ghc801:
+ image: haskell:8.0.1
+ stage: build
+ <<: *common_script
+
+job-ghc710:
+ image: haskell:7.10.3
+ stage: build
+ <<: *common_script
+
+job-ghc708:
+ image: haskell:7.8.4
+ stage: build
+ <<: *common_script