Add docker-compose.yml to run tests on multiple ghc versions.
[packages/binary.git] / docker-compose.yml
1 version: '3'
2 services:
3   binary_ghc843:
4     build:
5       context: .
6       dockerfile: docker/Dockerfile.ghc843
7       args:
8        - ghcver=8.4.3
9     volumes:
10      - cabal-store-cache:/root/.cabal/store
11
12   binary_ghc822:
13     build:
14       context: .
15       dockerfile: docker/Dockerfile.anyghc
16       args:
17        - ghcver=8.2.2
18     volumes:
19      - cabal-store-cache:/root/.cabal/store
20
21   binary_ghc802:
22     build:
23       context: .
24       dockerfile: docker/Dockerfile.anyghc
25       args:
26        - ghcver=8.0.2
27     volumes:
28      - cabal-store-cache:/root/.cabal/store
29
30   binary_ghc7103:
31     build:
32       context: .
33       dockerfile: docker/Dockerfile.anyghc
34       args:
35        - ghcver=7.10.3
36     volumes:
37      - cabal-store-cache:/root/.cabal/store
38
39   binary_ghc784:
40     build:
41       context: .
42       dockerfile: docker/Dockerfile.anyghc
43       args:
44        - ghcver=7.8.4
45     volumes:
46      - cabal-store-cache:/root/.cabal/store
47
48   binary_ghc763:
49     build:
50       context: .
51       dockerfile: docker/Dockerfile.anyghc
52       args:
53        - ghcver=7.6.3
54     volumes:
55      - cabal-store-cache:/root/.cabal/store
56
57   binary_ghc742:
58     build:
59       context: .
60       dockerfile: docker/Dockerfile.anyghc
61       args:
62        - ghcver=7.4.2
63     volumes:
64      - cabal-store-cache:/root/.cabal/store
65
66 volumes:
67   cabal-store-cache:
68     driver: local