2017-01-15 21:45:49 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2017-03-01 02:39:23 +00:00
|
|
|
.before_script_template: &common_before_script
|
|
|
|
before_script:
|
|
|
|
- ls -l ..
|
|
|
|
- mkdir -p ../ghc-mod.sdist-$CI_PIPELINE_ID
|
2018-02-10 14:11:05 +00:00
|
|
|
- cabal update
|
|
|
|
- cabal install cabal-doctest
|
|
|
|
- cabal act-as-setup -- sdist --output-directory=../ghc-mod.sdist-$CI_PIPELINE_ID
|
|
|
|
- cd core && cabal act-as-setup -- sdist --output-directory=../../ghc-mod.sdist-$CI_PIPELINE_ID/core
|
|
|
|
- cd ../../ghc-mod.sdist-$CI_PIPELINE_ID
|
2017-01-15 21:45:49 +00:00
|
|
|
|
|
|
|
after_script:
|
2017-03-01 02:39:23 +00:00
|
|
|
- rm -rf "$CI_PROJECT_DIR"/../ghc-mod.sdist-$CI_PIPELINE_ID
|
2017-01-15 21:45:49 +00:00
|
|
|
|
2017-03-01 02:39:23 +00:00
|
|
|
.script_template: &common_script
|
2017-01-15 21:45:49 +00:00
|
|
|
script:
|
|
|
|
- echo $PWD
|
|
|
|
- which cabal
|
|
|
|
- cabal --version
|
2018-02-10 14:11:05 +00:00
|
|
|
- cabal new-configure --enable-tests --only-dependencies
|
|
|
|
- cabal new-build
|
|
|
|
- cabal new-test
|
|
|
|
- cabal new-haddock
|
2017-01-15 21:45:49 +00:00
|
|
|
|
2017-03-01 02:39:23 +00:00
|
|
|
.artifacts_template: &common_artifacts
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ~/.cabal/logs
|
|
|
|
when: always
|
|
|
|
|
2017-08-28 08:16:09 +00:00
|
|
|
job-ghc802:
|
2018-02-10 14:11:05 +00:00
|
|
|
image: registry.gitlab.com/dxld/ghc-mod:ghc8.2.2-cabal-install2.0.0.1
|
2017-08-28 08:16:09 +00:00
|
|
|
stage: build
|
|
|
|
<<: *common_before_script
|
|
|
|
<<: *common_script
|
|
|
|
<<: *common_artifacts
|
|
|
|
|
2017-03-01 02:39:23 +00:00
|
|
|
job-ghc800:
|
2018-02-10 14:11:05 +00:00
|
|
|
image: registry.gitlab.com/dxld/ghc-mod:ghc8.0.2-cabal-install2.0.0.1
|
2017-01-15 21:45:49 +00:00
|
|
|
stage: build
|
2017-03-01 02:39:23 +00:00
|
|
|
<<: *common_before_script
|
2017-01-15 21:45:49 +00:00
|
|
|
<<: *common_script
|
2017-03-01 02:39:23 +00:00
|
|
|
<<: *common_artifacts
|
2017-01-15 21:45:49 +00:00
|
|
|
|
|
|
|
job-ghc710:
|
2018-02-10 14:11:05 +00:00
|
|
|
image: registry.gitlab.com/dxld/ghc-mod:ghc7.10.3-cabal-install2.0.0.1
|
2017-01-15 21:45:49 +00:00
|
|
|
stage: build
|
2017-03-01 02:39:23 +00:00
|
|
|
<<: *common_before_script
|
2017-01-15 21:45:49 +00:00
|
|
|
<<: *common_script
|
2017-03-01 02:39:23 +00:00
|
|
|
<<: *common_artifacts
|
2017-01-15 21:45:49 +00:00
|
|
|
|
|
|
|
job-ghc708:
|
2018-02-10 14:11:05 +00:00
|
|
|
image: registry.gitlab.com/dxld/ghc-mod:ghc7.8.4-cabal-install2.0.0.1
|
2017-03-01 02:39:23 +00:00
|
|
|
stage: build
|
|
|
|
<<: *common_before_script
|
|
|
|
<<: *common_script
|
|
|
|
<<: *common_artifacts
|