4
4
#
5
5
# For more information, see https://github.com/haskell-CI/haskell-ci
6
6
#
7
- # version: 0.5.20190908
7
+ # version: 0.9.20200121
8
8
#
9
+ version : ~> 1.0
9
10
language : c
11
+ os : linux
10
12
dist : xenial
11
13
git :
12
14
# whether to recursively clone submodules
18
20
directories :
19
21
- $HOME/.cabal/packages
20
22
- $HOME/.cabal/store
23
+ - $HOME/.hlint
21
24
before_cache :
22
25
- rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
23
26
# remove files that are regenerated by 'cabal update'
@@ -27,18 +30,23 @@ before_cache:
27
30
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
28
31
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
29
32
- rm -rfv $CABALHOME/packages/head.hackage
30
- matrix :
33
+ jobs :
31
34
include :
32
35
- compiler : ghc-8.8.1
33
- addons : {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
36
+ addons : {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
37
+ os : linux
34
38
- compiler : ghc-8.6.5
35
- addons : {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
39
+ addons : {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
40
+ os : linux
36
41
- compiler : ghc-8.4.4
37
- addons : {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
42
+ addons : {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
43
+ os : linux
38
44
- compiler : ghc-8.2.2
39
- addons : {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-3.0"]}}
45
+ addons : {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.2.2","cabal-install-3.0"]}}
46
+ os : linux
40
47
- compiler : ghc-8.0.2
41
- addons : {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-3.0"]}}
48
+ addons : {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.0.2","cabal-install-3.0"]}}
49
+ os : linux
42
50
before_install :
43
51
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
44
52
- WITHCOMPILER="-w $HC"
@@ -51,29 +59,8 @@ before_install:
51
59
- TOP=$(pwd)
52
60
- " HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\ d+)\\ .(\\ d+)\\ .(\\ d+)(\\ .(\\ d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
53
61
- echo $HCNUMVER
54
- - CABAL="$CABAL -vnormal+nowrap+markoutput "
62
+ - CABAL="$CABAL -vnormal+nowrap"
55
63
- set -o pipefail
56
- - |
57
- echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >> .colorful.awk
58
- echo 'BEGIN { state = "output"; }' >> .colorful.awk
59
- echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >> .colorful.awk
60
- echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >> .colorful.awk
61
- echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >> .colorful.awk
62
- echo ' if (state == "cabal") {' >> .colorful.awk
63
- echo ' print blue($0)' >> .colorful.awk
64
- echo ' } else {' >> .colorful.awk
65
- echo ' print $0' >> .colorful.awk
66
- echo ' }' >> .colorful.awk
67
- echo '}' >> .colorful.awk
68
- - cat .colorful.awk
69
- - |
70
- color_cabal_output () {
71
- awk -f $TOP/.colorful.awk
72
- }
73
- - echo text | color_cabal_output
74
- install :
75
- - ${CABAL} --version
76
- - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
77
64
- TEST=--enable-tests
78
65
- if [ $HCNUMVER -ge 80800 ] ; then TEST=--disable-tests ; fi
79
66
- BENCH=--enable-benchmarks
@@ -95,6 +82,9 @@ install:
95
82
echo " prefix: $CABALHOME" >> $CABALHOME/config
96
83
echo "repository hackage.haskell.org" >> $CABALHOME/config
97
84
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
85
+ install :
86
+ - ${CABAL} --version
87
+ - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
98
88
- |
99
89
echo "program-default-options" >> $CABALHOME/config
100
90
echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
@@ -111,15 +101,15 @@ install:
111
101
- cat cabal.project || true
112
102
- cat cabal.project.local || true
113
103
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
114
- - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
104
+ - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
115
105
- " cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
116
106
- rm cabal.project.freeze
117
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
118
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all | color_cabal_output
107
+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
108
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
119
109
script :
120
110
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
121
111
# Packaging...
122
- - ${CABAL} v2-sdist all | color_cabal_output
112
+ - ${CABAL} v2-sdist all
123
113
# Unpacking...
124
114
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
125
115
- cd ${DISTDIR} || false
@@ -137,25 +127,27 @@ script:
137
127
- cat cabal.project.local || true
138
128
# Building...
139
129
# this builds all libraries and executables (without tests/benchmarks)
140
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
130
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
141
131
# Building with tests and benchmarks...
142
132
# build & run tests, build benchmarks
143
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
133
+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
144
134
# Testing...
145
- - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
135
+ - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all ; fi
146
136
# cabal check...
147
137
- (cd ${PKGDIR_servant_js} && ${CABAL} -vnormal check)
148
138
# haddock...
149
- - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output
139
+ - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
150
140
# Building without installed constraints for packages in global-db...
151
141
- rm -f cabal.project.local
152
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
142
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
153
143
# Constraint sets
154
144
- rm -rf cabal.project.local
155
145
# Constraint set servant-0.15
156
- - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.15.*' all | color_cabal_output ; fi
146
+ - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.15.*' all ; fi
157
147
# Constraint set servant-0.16
158
- - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.16.*' all | color_cabal_output ; fi
148
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.16.*' all
149
+ # Constraint set servant-0.17
150
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all
159
151
160
- # REGENDATA ["--output",".travis.yml","--config=cabal.haskell-ci","servant-js.cabal"]
152
+ # REGENDATA ("0.9.20200121", ["--output",".travis.yml","--config=cabal.haskell-ci","servant-js.cabal"])
161
153
# EOF
0 commit comments