commit
6fe2c78567
9 changed files with 31 additions and 37 deletions
42
.travis.yml
42
.travis.yml
|
@ -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
|
||||
#
|
||||
|
@ -12,8 +12,8 @@ git:
|
|||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- release-0.12
|
||||
- master
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue