4
4
#
5
5
# For more information, see https://github.com/haskell-CI/haskell-ci
6
6
#
7
- # version: 0.9.20191209
7
+ # version: 0.9.20200121
8
8
#
9
9
version : ~> 1.0
10
10
language : c
@@ -59,57 +59,31 @@ before_install:
59
59
- TOP=$(pwd)
60
60
- " HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\ d+)\\ .(\\ d+)\\ .(\\ d+)(\\ .(\\ d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
61
61
- echo $HCNUMVER
62
- - CABAL="$CABAL -vnormal+nowrap+markoutput "
62
+ - CABAL="$CABAL -vnormal+nowrap"
63
63
- set -o pipefail
64
- - |
65
- echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >> .colorful.awk
66
- echo 'BEGIN { state = "output"; }' >> .colorful.awk
67
- echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >> .colorful.awk
68
- echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >> .colorful.awk
69
- echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >> .colorful.awk
70
- echo ' if (state == "cabal") {' >> .colorful.awk
71
- echo ' print blue($0)' >> .colorful.awk
72
- echo ' } else {' >> .colorful.awk
73
- echo ' print $0' >> .colorful.awk
74
- echo ' }' >> .colorful.awk
75
- echo '}' >> .colorful.awk
76
- - cat .colorful.awk
77
- - |
78
- color_cabal_output () {
79
- awk -f $TOP/.colorful.awk
80
- }
81
- - echo text | color_cabal_output
82
- install :
83
- - ${CABAL} --version
84
- - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
85
64
- TEST=--enable-tests
86
65
- BENCH=--enable-benchmarks
87
66
- HEADHACKAGE=false
88
67
- rm -f $CABALHOME/config
89
68
- |
90
- echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
91
- echo "remote-build-reporting: anonymous" >> $CABALHOME/config
92
- echo "write-ghc-environment-files: always" >> $CABALHOME/config
93
- echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
94
- echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
95
- echo "world-file: $CABALHOME/world" >> $CABALHOME/config
96
- echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
97
- echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
98
- echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
99
- echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
100
- echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
101
- echo "install-dirs user" >> $CABALHOME/config
102
- echo " prefix: $CABALHOME" >> $CABALHOME/config
103
- echo "repository hackage.haskell.org" >> $CABALHOME/config
104
- echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
105
- echo " secure: True" >> $CABALHOME/config
106
- echo " key-threshold: 3" >> $CABALHOME/config
107
- echo " root-keys:" >> $CABALHOME/config
108
- echo " fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0" >> $CABALHOME/config
109
- echo " 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42" >> $CABALHOME/config
110
- echo " 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3" >> $CABALHOME/config
111
- echo " 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d" >> $CABALHOME/config
112
- echo " 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921" >> $CABALHOME/config
69
+ echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
70
+ echo "remote-build-reporting: anonymous" >> $CABALHOME/config
71
+ echo "write-ghc-environment-files: always" >> $CABALHOME/config
72
+ echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
73
+ echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
74
+ echo "world-file: $CABALHOME/world" >> $CABALHOME/config
75
+ echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
76
+ echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
77
+ echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
78
+ echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
79
+ echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
80
+ echo "install-dirs user" >> $CABALHOME/config
81
+ echo " prefix: $CABALHOME" >> $CABALHOME/config
82
+ echo "repository hackage.haskell.org" >> $CABALHOME/config
83
+ echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
84
+ install :
85
+ - ${CABAL} --version
86
+ - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
113
87
- |
114
88
echo "program-default-options" >> $CABALHOME/config
115
89
echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
@@ -127,15 +101,15 @@ install:
127
101
- cat cabal.project || true
128
102
- cat cabal.project.local || true
129
103
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
130
- - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
104
+ - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
131
105
- " cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
132
106
- rm cabal.project.freeze
133
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
134
- - ${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
135
109
script :
136
110
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
137
111
# Packaging...
138
- - ${CABAL} v2-sdist all | color_cabal_output
112
+ - ${CABAL} v2-sdist all
139
113
# Unpacking...
140
114
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
141
115
- cd ${DISTDIR} || false
@@ -154,31 +128,29 @@ script:
154
128
- cat cabal.project.local || true
155
129
# Building...
156
130
# this builds all libraries and executables (without tests/benchmarks)
157
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
131
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
158
132
# Building with tests and benchmarks...
159
133
# build & run tests, build benchmarks
160
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
134
+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
161
135
# Testing...
162
- - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
136
+ - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
163
137
# cabal check...
164
138
- (cd ${PKGDIR_servant_swagger} && ${CABAL} -vnormal check)
165
139
# haddock...
166
- - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output
140
+ - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
167
141
# Building without installed constraints for packages in global-db...
168
142
- rm -f cabal.project.local
169
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
143
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
170
144
# Constraint sets
171
145
- rm -rf cabal.project.local
172
146
# Constraint set swagger2-2.3
173
- - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.3.*' all | color_cabal_output ; fi
147
+ - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.3.*' all ; fi
174
148
# Constraint set swagger2-2.4
175
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.4.*' all | color_cabal_output
149
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.4.*' all
176
150
# Constraint set swagger2-2.5
177
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.5.*' all | color_cabal_output
178
- # Constraint set servant-0.15
179
- - if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant == 0.15.*' all | color_cabal_output ; fi
180
- # Constraint set servant-0.16
181
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant == 0.16.*' all | color_cabal_output
151
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='swagger2 ==2.5.*' all
152
+ # Constraint set servant-0.17
153
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='servant == 0.17.*' all
182
154
183
- # REGENDATA ("0.9.20191209 ",["--config=cabal.haskell-ci","cabal.project"])
155
+ # REGENDATA ("0.9.20200121 ",["--config=cabal.haskell-ci","cabal.project"])
184
156
# EOF
0 commit comments