Skip to content

Commit

Permalink
Merge pull request haskell-servant#872 from phadej/http-types-0.11
Browse files Browse the repository at this point in the history
Http types 0.11
  • Loading branch information
phadej authored Dec 10, 2017
2 parents f3470c2 + ccf0056 commit 6fe2c78
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 37 deletions.
42 changes: 18 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Travis job script has been generated by a script via
#
# make_travis_yml_2.hs '-f' '-o' '.travis.yml' 'cabal.project'
# make_travis_yml_2.hs '-f' '-o' '.travis.yml' '--branch' 'master' '--branch' 'release-0.12' 'cabal.project'
#
# For more information, see https://github.com/hvr/multi-ghc-travis
#
Expand All @@ -12,8 +12,8 @@ git:

branches:
only:
- master
- release-0.12
- master

cache:
directories:
Expand All @@ -40,15 +40,16 @@ matrix:
- compiler: "ghc-8.0.2"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
- compiler: "ghc-8.2.1"
- compiler: "ghc-8.2.2"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.1], sources: [hvr-ghc]}}
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}

before_install:
- HC=${CC}
- HCPKG=${HC/ghc/ghc-pkg}
- unset CC
- PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
- ROOTDIR=$(pwd)
- "PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH"

install:
- cabal --version
Expand All @@ -58,7 +59,7 @@ install:
- HADDOCK=${HADDOCK-true}
- INSTALLED=${INSTALLED-true}
- travis_retry cabal update -v
- sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
- "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
- rm -fv cabal.project.local
- if [ -f "servant/configure.ac" ]; then
(cd "servant"; autoreconf -i);
Expand Down Expand Up @@ -92,26 +93,21 @@ install:
script:
# test that source-distributions can be generated
- echo Packaging... && echo -en 'travis_fold:start:sdist\\r'
- (cd "servant"; cabal sdist)
- (cd "servant-client"; cabal sdist)
- (cd "servant-client-core"; cabal sdist)
- (cd "servant-docs"; cabal sdist)
- (cd "servant-foreign"; cabal sdist)
- (cd "servant-server"; cabal sdist)
- (cd "doc/tutorial"; cabal sdist)
- (cd "servant" && cabal sdist)
- (cd "servant-client" && cabal sdist)
- (cd "servant-client-core" && cabal sdist)
- (cd "servant-docs" && cabal sdist)
- (cd "servant-foreign" && cabal sdist)
- (cd "servant-server" && cabal sdist)
- (cd "doc/tutorial" && cabal sdist)
- echo -en 'travis_fold:end:sdist\\r'
- echo Unpacking... && echo -en 'travis_fold:start:unpack\\r'
- mv "servant"/dist/servant-*.tar.gz "servant-client"/dist/servant-client-*.tar.gz "servant-client-core"/dist/servant-client-core-*.tar.gz "servant-docs"/dist/servant-docs-*.tar.gz "servant-foreign"/dist/servant-foreign-*.tar.gz "servant-server"/dist/servant-server-*.tar.gz "doc/tutorial"/dist/tutorial-*.tar.gz ${DISTDIR}/
- cd ${DISTDIR}
- cd ${DISTDIR} || false
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
- "printf 'packages: servant-*/*.cabal servant-client-*/*.cabal servant-client-core-*/*.cabal servant-docs-*/*.cabal servant-foreign-*/*.cabal servant-server-*/*.cabal tutorial-*/*.cabal\n' > cabal.project"

- "printf 'packages: servant-*/*.cabal servant-client-*/*.cabal servant-client-core-*/*.cabal servant-docs-*/*.cabal servant-foreign-*/*.cabal servant-server-*/*.cabal tutorial-*/*.cabal\\n' > cabal.project"
# Allow-newer and other cabal.project amendments
- "echo 'allow-newer: servant-js:servant, servant-js:servant-foreign' >> cabal.project"

# cryptonite
- "echo 'constraints: foundation >=0.0.14' >> cabal.project"

- echo -en 'travis_fold:end:unpack\\r'
- echo Building... && echo -en 'travis_fold:start:build\\r'
# this builds all libraries and executables (without tests/benchmarks)
Expand All @@ -120,9 +116,7 @@ script:

- echo Building with installed constraints for package in global-db... && echo -en 'travis_fold:start:build-installed\\r'
# Build with installed constraints for packages in global-db
- if $INSTALLED; then
echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh;
else echo "Not building with installed constraints"; fi
- if $INSTALLED; then echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh; else echo "Not building with installed constraints"; fi
- echo -en 'travis_fold:end:build-installed\\r'

- echo Building with tests and benchmarks... && echo -en 'travis_fold:start:build-everything\\r'
Expand All @@ -139,5 +133,5 @@ script:
- if $HADDOCK; then cabal new-haddock -w ${HC} --disable-tests --disable-benchmarks all; else echo "Skipping haddock generation";fi

- echo -en 'travis_fold:end:haddock\\r'
# REGENDATA ["-f","-o",".travis.yml","cabal.project"]
# REGENDATA ["-f","-o",".travis.yml","--branch","master","--branch","release-0.12","cabal.project"]
# EOF
2 changes: 1 addition & 1 deletion doc/tutorial/tutorial.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2
extra-source-files:
static/index.html
static/ui.js
Expand Down
4 changes: 2 additions & 2 deletions servant-client-core/servant-client-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2

source-repository head
type: git
Expand All @@ -49,7 +49,7 @@ library
, generics-sop >= 0.1.0.0 && < 0.4
, http-api-data >= 0.3.6 && < 0.4
, http-media >= 0.6.2 && < 0.8
, http-types >= 0.8.6 && < 0.11
, http-types >= 0.8.6 && < 0.12
, mtl >= 2.1 && < 2.3
, network-uri >= 2.6 && < 2.7
, safe >= 0.3.9 && < 0.4
Expand Down
2 changes: 1 addition & 1 deletion servant-client-ghcjs/servant-client-ghcjs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ library
, ghcjs-base >= 0.2.0.0 && < 0.3.0.0
, ghcjs-prim >= 0.1.0.0 && < 0.2.0.0
, http-media >= 0.6.2 && < 0.8
, http-types >= 0.8.6 && < 0.10
, http-types >= 0.8.6 && < 0.12
, monad-control >= 1.0.0.4 && < 1.1
, mtl >= 2.1 && < 2.3
, semigroupoids >= 4.3 && < 5.3
Expand Down
4 changes: 2 additions & 2 deletions servant-client/servant-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2
homepage: http://haskell-servant.readthedocs.org/
Bug-reports: http://github.com/haskell-servant/servant/issues
extra-source-files:
Expand All @@ -45,7 +45,7 @@ library
, http-client >= 0.4.30 && < 0.6
, http-client-tls >= 0.2.2 && < 0.4
, http-media >= 0.6.2 && < 0.8
, http-types >= 0.8.6 && < 0.11
, http-types >= 0.8.6 && < 0.12
, exceptions >= 0.8 && < 0.9
, monad-control >= 1.0.0.4 && < 1.1
, mtl >= 2.1 && < 2.3
Expand Down
2 changes: 1 addition & 1 deletion servant-docs/servant-docs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2
homepage: http://haskell-servant.readthedocs.org/
Bug-reports: http://github.com/haskell-servant/servant/issues
extra-source-files:
Expand Down
2 changes: 1 addition & 1 deletion servant-foreign/servant-foreign.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2

source-repository head
type: git
Expand Down
6 changes: 3 additions & 3 deletions servant-server/servant-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2
extra-source-files:
include/*.h
CHANGELOG.md
Expand Down Expand Up @@ -65,7 +65,7 @@ library
, exceptions >= 0.8 && < 0.9
, http-api-data >= 0.3 && < 0.4
, http-media >= 0.4 && < 0.8
, http-types >= 0.8 && < 0.11
, http-types >= 0.8 && < 0.12
, network-uri >= 2.6 && < 2.7
, monad-control >= 1.0.0.4 && < 1.1
, mtl >= 2 && < 2.3
Expand Down Expand Up @@ -137,7 +137,7 @@ test-suite spec
, directory
, exceptions
, hspec == 2.*
, hspec-wai >= 0.8 && <0.9
, hspec-wai >= 0.8 && <0.10
, http-types
, mtl
, network >= 2.6
Expand Down
4 changes: 2 additions & 2 deletions servant/servant.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tested-with:
GHC==7.8.4
GHC==7.10.3
GHC==8.0.2
GHC==8.2.1
GHC==8.2.2
extra-source-files:
include/*.h
CHANGELOG.md
Expand Down Expand Up @@ -71,7 +71,7 @@ library
, case-insensitive >= 1.2 && < 1.3
, http-api-data >= 0.3 && < 0.4
, http-media >= 0.4 && < 0.8
, http-types >= 0.8 && < 0.11
, http-types >= 0.8 && < 0.12
, natural-transformation >= 0.4 && < 0.5
, mtl >= 2.0 && < 2.3
, mmorph >= 1 && < 1.2
Expand Down

0 comments on commit 6fe2c78

Please sign in to comment.