summaryrefslogtreecommitdiffhomepage
path: root/.drone.yml
blob: 3c103a965adcc9cf45732781b1ed28b47e5c2600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
matrix:
  GHC_VERSION:
    - 9
    - 8

pipeline:
  test:
    image: haskell:${GHC_VERSION}
    commands:
      - apt-get update
      - apt-get install -y xorg-dev libxrandr-dev libpango1.0-dev
      - apt-get install -y libasound2-dev libxpm-dev libmpd-dev
      - apt-get install -y hspec-discover hlint

      - hlint src

      - cabal update
      - cabal build --enable-tests -fall_extensions
      - cabal test --enable-tests -fall_extensions

      - cabal test --enable-tests -fall_extensions -f-with_cairo
      - cabal test --enable-tests -fall_extensions -f-with_xrender