git.iko.soy/typeable/http-api-data
on master help sign in
.travis.yml tweaks
461de43Oleg Grenrus
.travis.yml+25−2
@@ -44,6 +44,12 @@ matrix:
44 - compiler: "ghc-8.2.2"
44 - compiler: "ghc-8.2.2"
45 # env: TEST=--disable-tests BENCH=--disable-benchmarks
45 # env: TEST=--disable-tests BENCH=--disable-benchmarks
46 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
46 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
47+ - compiler: "ghc-8.4.1"
48+ env: GHCHEAD=true
49+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
50+
51+ allow_failures:
52+ - compiler: "ghc-8.4.1"
47
53
48before_install:
54before_install:
49 - HC=${CC}
55 - HC=${CC}
@@ -67,6 +73,21 @@ install:
67 - "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
73 - "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
68 - rm -fv cabal.project cabal.project.local
74 - rm -fv cabal.project cabal.project.local
69 - "if [ $HCNUMVER -ge 70800 ]; then sed -i.bak 's/-- ghc-options:.*/ghc-options: -j2/' ${HOME}/.cabal/config; fi"
75 - "if [ $HCNUMVER -ge 70800 ]; then sed -i.bak 's/-- ghc-options:.*/ghc-options: -j2/' ${HOME}/.cabal/config; fi"
76+ # Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage
77+ - |
78+ if $GHCHEAD; then
79+ sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
80+
81+ echo 'repository head.hackage' >> ${HOME}/.cabal/config
82+ echo ' url: http://head.hackage.haskell.org/' >> ${HOME}/.cabal/config
83+ echo ' secure: True' >> ${HOME}/.cabal/config
84+ echo ' root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740' >> ${HOME}/.cabal/config
85+ echo ' 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb' >> ${HOME}/.cabal/config
86+ echo ' 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e' >> ${HOME}/.cabal/config
87+ echo ' key-threshold: 3' >> ${HOME}/.cabal.config
88+
89+ cabal new-update head.hackage -v
90+ fi
70 - grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
91 - grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
71 - "printf 'packages: \".\"\\n' > cabal.project"
92 - "printf 'packages: \".\"\\n' > cabal.project"
72 - cat cabal.project
93 - cat cabal.project
@@ -106,9 +127,11 @@ script:
106 - rm -rf ./dist-newstyle
127 - rm -rf ./dist-newstyle
107 - if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
128 - if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi
108
129
109− - if [ $HCNUMVER -eq 70804 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.4.0' --constraint='containers ==0.5.5.1' --constraint='hashable ==1.1.2.4' --constraint='http-types ==0.8.6' --constraint='text ==1.1.1.3' --constraint='time ==1.4.2' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.5.0' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
130+ - if [ $HCNUMVER -eq 70804 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.4.0' --constraint='containers ==0.5.5.1' --constraint='hashable ==1.1.2.4' --constraint='http-types ==0.8.6' --constraint='semigroups ==0.16' --constraint='text ==1.1.1.3' --constraint='time ==1.4.2' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
131+
132+ - if [ $HCNUMVER -eq 71003 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.6.0' --constraint='containers ==0.5.6.1' --constraint='hashable ==1.2.3.2' --constraint='http-types ==0.8.6' --constraint='semigroups ==0.16.0.1' --constraint='text ==1.2.0.2' --constraint='time ==1.5.0.1' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
110
133
111− - if [ $HCNUMVER -eq 71003 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.6.0' --constraint='containers ==0.5.6.1' --constraint='hashable ==1.2.3.2' --constraint='http-types ==0.8.6' --constraint='text ==1.2.0.2' --constraint='time ==1.5.0.1' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.5.1' --constraint='uri-bytestring ==0.1.7' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
134+ - if [ $HCNUMVER -eq 80002 ]; then cabal new-build -w ${HC} --disable-tests --disable-benchmarks --constraint='attoparsec ==0.13.0.1' --constraint='attoparsec-iso8601 ==1.0.0.0' --constraint='bytestring ==0.10.6.0' --constraint='containers ==0.5.7.0' --constraint='hashable ==1.2.4.0' --constraint='http-types ==0.8.6' --constraint='text ==1.2.2.0' --constraint='time ==1.5.0.1' --constraint='time-local-compat ==0.1.1.0' --constraint='unordered-containers ==0.2.6.0' --constraint='uri-bytestring ==0.2.1.0' --constraint='uuid-types ==1.0.2' all; else echo skipping...; fi
112
135
113# REGENDATA ["--config","--output",".travis.yml","http-api-data.cabal"]
136# REGENDATA ["--config","--output",".travis.yml","http-api-data.cabal"]
114# EOF
137# EOF
cabal.make-travis-yml+20−2
@@ -14,10 +14,11 @@ constraint-set lower-bounds-7.8.4
14 containers ==0.5.5.1,
14 containers ==0.5.5.1,
15 hashable ==1.1.2.4,
15 hashable ==1.1.2.4,
16 http-types ==0.8.6,
16 http-types ==0.8.6,
17+ semigroups ==0.16,
17 text ==1.1.1.3,
18 text ==1.1.1.3,
18 time ==1.4.2,
19 time ==1.4.2,
19 time-local-compat ==0.1.1.0,
20 time-local-compat ==0.1.1.0,
20− unordered-containers ==0.2.5.0,
21+ unordered-containers ==0.2.6.0,
21 uri-bytestring ==0.1.7,
22 uri-bytestring ==0.1.7,
22 uuid-types ==1.0.2
23 uuid-types ==1.0.2
23
24
@@ -30,9 +31,26 @@ constraint-set lower-bounds-7.10.3
30 containers ==0.5.6.1,
31 containers ==0.5.6.1,
31 hashable ==1.2.3.2,
32 hashable ==1.2.3.2,
32 http-types ==0.8.6,
33 http-types ==0.8.6,
34+ semigroups ==0.16.0.1,
33 text ==1.2.0.2,
35 text ==1.2.0.2,
34 time ==1.5.0.1,
36 time ==1.5.0.1,
35 time-local-compat ==0.1.1.0,
37 time-local-compat ==0.1.1.0,
36− unordered-containers ==0.2.5.1,
38+ unordered-containers ==0.2.6.0,
37 uri-bytestring ==0.1.7,
39 uri-bytestring ==0.1.7,
38 uuid-types ==1.0.2
40 uuid-types ==1.0.2
41+
42+constraint-set lower-bounds-8.0.2
43+ ghc: == 8.0.2
44+ constraints:
45+ attoparsec ==0.13.0.1,
46+ attoparsec-iso8601 ==1.0.0.0,
47+ bytestring ==0.10.6.0,
48+ containers ==0.5.7.0,
49+ hashable ==1.2.4.0,
50+ http-types ==0.8.6,
51+ text ==1.2.2.0,
52+ time ==1.5.0.1,
53+ time-local-compat ==0.1.1.0,
54+ unordered-containers ==0.2.6.0,
55+ uri-bytestring ==0.2.1.0,
56+ uuid-types ==1.0.2
http-api-data.cabal+2−1
@@ -23,7 +23,8 @@ tested-with:
23 GHC==7.8.4,
23 GHC==7.8.4,
24 GHC==7.10.3,
24 GHC==7.10.3,
25 GHC==8.0.2,
25 GHC==8.0.2,
26− GHC==8.2.2
26+ GHC==8.2.2,
27+ GHC==8.4.1
27
28
28custom-setup
29custom-setup
29 setup-depends:
30 setup-depends: