ghc-mod/.gitlab-ci.yml

60 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2017-01-15 21:45:49 +00:00
stages:
- build
.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:
- rm -rf "$CI_PROJECT_DIR"/../ghc-mod.sdist-$CI_PIPELINE_ID
2017-01-15 21:45:49 +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
.artifacts_template: &common_artifacts
artifacts:
paths:
- ~/.cabal/logs
when: always
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
stage: build
<<: *common_before_script
<<: *common_script
<<: *common_artifacts
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
<<: *common_before_script
2017-01-15 21:45:49 +00:00
<<: *common_script
<<: *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
<<: *common_before_script
2017-01-15 21:45:49 +00:00
<<: *common_script
<<: *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
stage: build
<<: *common_before_script
<<: *common_script
<<: *common_artifacts