forked from haskell/bytestring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
54 lines (54 loc) · 1.53 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
kind: pipeline
name: arm
platform: { os: linux, arch: arm }
steps:
- name: Test
image: elmanhasa/haskell-base
commands:
- export LC_ALL=C.UTF-8
- uname -a # check platform
- getconf LONG_BIT # check bitness
- cabal --version
- cabal update
- cabal new-test
---
kind: pipeline
name: arm64
platform: { os: linux, arch: arm64 }
steps:
- name: Test
image: buildpack-deps:focal
commands:
- export LC_ALL=C.UTF-8
- uname -a # check platform
- getconf LONG_BIT # check bitness
- apt-get update -y
- apt-get install -y ghc cabal-install
- cabal --version
- cabal update
- cabal new-test
---
kind: pipeline
name: i386
platform: { os: linux, arch: amd64 }
steps:
- name: Test
image: i386/ubuntu
commands:
- export LC_ALL=C.UTF-8
- uname -a # check platform
- getconf LONG_BIT # check bitness
- apt-get update -y
- apt-get install -y ghc cabal-install
- cabal --version # 1.24
- cabal update
# We need to break dependency circuit between optparse-applicative,
# process, unix and bytestring. Newer versions of Cabal are capable
# of coming up with these automatically, but older ones need a hint.
# Specifically, we need to inform Cabal that:
#
# * optparse-applicative doesn't use process;
# * QuickCheck uses the old random package; and
# * tasty doesn't use unix.
- cabal install --dependencies-only --enable-tests --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix'
- cabal test