Update .gitlab-ci.yml
[nofib.git] / .gitlab-ci.yml
1 variables:
2   DOCKER_REV: 6d19c3adc1f5c28c82aed8c5b1ac40931ac60f3f
3
4 validate:
5   image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
6   before_script:
7     - git clean -xdf
8     - sudo apt install -y time
9     - ghc --version
10     - cabal --version
11   script:
12     - make clean
13     - cabal update
14     - make boot mode=fast
15     - "make mode=fast NoFibRuns=1 2>&1 | tee log"
16     - "nofib-analyse/nofib-analyse log"
17     - |
18       # The following checks that `make distclean` removes any files reported
19       # by `git clean -fxd`
20       make distclean
21       files=$(git clean -nxd | cut -d" " -f3 | sed "/log/d")
22       if ! [ -z $files ]
23       then
24         echo "The following files weren't cleaned:\n$files"
25         exit 1
26       fi