1
1
# This Travis job script has been generated by a script via
2
2
#
3
- # haskell-ci '--benchmarks-jobs=>= 7.10' '--ghc-head' '--installed=-containers' '--installed=-binary' 'unordered-containers.cabal'
3
+ # haskell-ci '--benchmarks-jobs= >=7.10' '--ghc-head' '--installed=-containers' '--installed=-binary' 'unordered-containers.cabal'
4
+ #
5
+ # To regenerate the script (for example after adjusting tested-with) run
6
+ #
7
+ # haskell-ci regenerate
4
8
#
5
9
# For more information, see https://github.com/haskell-CI/haskell-ci
6
10
#
7
- # version: 0.9.20191209
11
+ # version: 0.10.1
8
12
#
9
13
version : ~> 1.0
10
14
language : c
@@ -29,26 +33,29 @@ before_cache:
29
33
- rm -rfv $CABALHOME/packages/head.hackage
30
34
jobs :
31
35
include :
32
- - compiler : ghc-8.8.1
33
- 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"]}}
36
+ - compiler : ghc-8.10.1
37
+ 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.10.1","cabal-install-3.2"]}}
38
+ os : linux
39
+ - compiler : ghc-8.8.3
40
+ 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.3","cabal-install-3.2"]}}
34
41
os : linux
35
42
- compiler : ghc-8.6.5
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.6.5","cabal-install-3.0 "]}}
43
+ 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.2 "]}}
37
44
os : linux
38
45
- compiler : ghc-8.4.4
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.4.4","cabal-install-3.0 "]}}
46
+ 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.2 "]}}
40
47
os : linux
41
48
- compiler : ghc-8.2.2
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.2.2","cabal-install-3.0 "]}}
49
+ 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.2 "]}}
43
50
os : linux
44
51
- compiler : ghc-8.0.2
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.0.2","cabal-install-3.0 "]}}
52
+ 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.2 "]}}
46
53
os : linux
47
54
- compiler : ghc-7.10.3
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-7.10.3","cabal-install-3.0 "]}}
55
+ 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-7.10.3","cabal-install-3.2 "]}}
49
56
os : linux
50
57
- compiler : ghc-7.8.4
51
- 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-7.8.4","cabal-install-3.0 "]}}
58
+ 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-7.8.4","cabal-install-3.2 "]}}
52
59
os : linux
53
60
- compiler : ghc-head
54
61
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-head","cabal-install-head"]}}
@@ -67,59 +74,30 @@ before_install:
67
74
- TOP=$(pwd)
68
75
- " HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\ d+)\\ .(\\ d+)\\ .(\\ d+)(\\ .(\\ d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
69
76
- echo $HCNUMVER
70
- - CABAL="$CABAL -vnormal+nowrap+markoutput "
77
+ - CABAL="$CABAL -vnormal+nowrap"
71
78
- set -o pipefail
72
- - |
73
- echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >> .colorful.awk
74
- echo 'BEGIN { state = "output"; }' >> .colorful.awk
75
- echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >> .colorful.awk
76
- echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >> .colorful.awk
77
- echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >> .colorful.awk
78
- echo ' if (state == "cabal") {' >> .colorful.awk
79
- echo ' print blue($0)' >> .colorful.awk
80
- echo ' } else {' >> .colorful.awk
81
- echo ' print $0' >> .colorful.awk
82
- echo ' }' >> .colorful.awk
83
- echo '}' >> .colorful.awk
84
- - cat .colorful.awk
85
- - |
86
- color_cabal_output () {
87
- awk -f $TOP/.colorful.awk
88
- }
89
- - echo text | color_cabal_output
90
- install :
91
- - ${CABAL} --version
92
- - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
93
79
- TEST=--enable-tests
94
80
- BENCH=--enable-benchmarks
95
81
- if [ $HCNUMVER -lt 71000 ] ; then BENCH=--disable-benchmarks ; fi
96
82
- HEADHACKAGE=false
97
- - if [ $HCNUMVER -gt 80801 ] ; then HEADHACKAGE=true ; fi
83
+ - if [ $HCNUMVER -gt 81001 ] ; then HEADHACKAGE=true ; fi
98
84
- rm -f $CABALHOME/config
99
85
- |
100
- echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
101
- echo "remote-build-reporting: anonymous" >> $CABALHOME/config
102
- echo "write-ghc-environment-files: always" >> $CABALHOME/config
103
- echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
104
- echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
105
- echo "world-file: $CABALHOME/world" >> $CABALHOME/config
106
- echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
107
- echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
108
- echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
109
- echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
110
- echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
111
- echo "install-dirs user" >> $CABALHOME/config
112
- echo " prefix: $CABALHOME" >> $CABALHOME/config
113
- echo "repository hackage.haskell.org" >> $CABALHOME/config
114
- echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
115
- echo " secure: True" >> $CABALHOME/config
116
- echo " key-threshold: 3" >> $CABALHOME/config
117
- echo " root-keys:" >> $CABALHOME/config
118
- echo " fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0" >> $CABALHOME/config
119
- echo " 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42" >> $CABALHOME/config
120
- echo " 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3" >> $CABALHOME/config
121
- echo " 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d" >> $CABALHOME/config
122
- echo " 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921" >> $CABALHOME/config
86
+ echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
87
+ echo "remote-build-reporting: anonymous" >> $CABALHOME/config
88
+ echo "write-ghc-environment-files: always" >> $CABALHOME/config
89
+ echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
90
+ echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
91
+ echo "world-file: $CABALHOME/world" >> $CABALHOME/config
92
+ echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
93
+ echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
94
+ echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
95
+ echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
96
+ echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
97
+ echo "install-dirs user" >> $CABALHOME/config
98
+ echo " prefix: $CABALHOME" >> $CABALHOME/config
99
+ echo "repository hackage.haskell.org" >> $CABALHOME/config
100
+ echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
123
101
- |
124
102
if $HEADHACKAGE; then
125
103
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
@@ -131,6 +109,9 @@ install:
131
109
echo " f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89" >> $CABALHOME/config
132
110
echo " key-threshold: 3" >> $CABALHOME/config
133
111
fi
112
+ install :
113
+ - ${CABAL} --version
114
+ - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
134
115
- |
135
116
echo "program-default-options" >> $CABALHOME/config
136
117
echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
@@ -142,20 +123,22 @@ install:
142
123
- touch cabal.project
143
124
- |
144
125
echo "packages: ." >> cabal.project
126
+ - if [ $HCNUMVER -ge 80200 ] ; then echo 'package unordered-containers' >> cabal.project ; fi
127
+ - " if [ $HCNUMVER -ge 80200 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
145
128
- |
146
129
- " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(binary|containers|unordered-containers)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
147
130
- cat cabal.project || true
148
131
- cat cabal.project.local || true
149
132
- if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
150
- - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
133
+ - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
151
134
- " cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
152
135
- rm cabal.project.freeze
153
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
154
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all | color_cabal_output
136
+ - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
137
+ - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
155
138
script :
156
139
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
157
140
# Packaging...
158
- - ${CABAL} v2-sdist all | color_cabal_output
141
+ - ${CABAL} v2-sdist all
159
142
# Unpacking...
160
143
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
161
144
- cd ${DISTDIR} || false
@@ -167,25 +150,27 @@ script:
167
150
- touch cabal.project
168
151
- |
169
152
echo "packages: ${PKGDIR_unordered_containers}" >> cabal.project
153
+ - if [ $HCNUMVER -ge 80200 ] ; then echo 'package unordered-containers' >> cabal.project ; fi
154
+ - " if [ $HCNUMVER -ge 80200 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
170
155
- |
171
156
- " for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(binary|containers|unordered-containers)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
172
157
- cat cabal.project || true
173
158
- cat cabal.project.local || true
174
159
# Building...
175
160
# this builds all libraries and executables (without tests/benchmarks)
176
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
161
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
177
162
# Building with tests and benchmarks...
178
163
# build & run tests, build benchmarks
179
- - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
164
+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
180
165
# Testing...
181
- - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
166
+ - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
182
167
# cabal check...
183
168
- (cd ${PKGDIR_unordered_containers} && ${CABAL} -vnormal check)
184
169
# haddock...
185
- - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output
170
+ - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
186
171
# Building without installed constraints for packages in global-db...
187
172
- rm -f cabal.project.local
188
- - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
173
+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
189
174
190
- # REGENDATA ("0.9.20191209 ",["--benchmarks-jobs=>= 7.10","--ghc-head","--installed=-containers","--installed=-binary","unordered-containers.cabal"])
175
+ # REGENDATA ("0.10.1 ",["--benchmarks-jobs= >= 7.10","--ghc-head","--installed=-containers","--installed=-binary","unordered-containers.cabal"])
191
176
# EOF
0 commit comments