Skip to content

Commit

Permalink
tasty-1.2, .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Dec 16, 2018
1 parent b52b84a commit 73fdf9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Expand Up @@ -32,12 +32,12 @@ before_cache:

matrix:
include:
- compiler: "ghc-8.6.1"
- compiler: "ghc-8.6.3"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.1], sources: [hvr-ghc]}}
- compiler: "ghc-8.4.3"
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.3], sources: [hvr-ghc]}}
- compiler: "ghc-8.4.4"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.3], sources: [hvr-ghc]}}
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.4], sources: [hvr-ghc]}}
- compiler: "ghc-8.2.2"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.2.2], sources: [hvr-ghc]}}
Expand Down Expand Up @@ -78,6 +78,7 @@ install:
- rm -fv cabal.project cabal.project.local
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
- "printf 'packages: \".\"\\n' > cabal.project"
- "printf 'write-ghc-environment-files: always\\n' >> cabal.project"
- touch cabal.project.local
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- insert-ordered-containers | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- cat cabal.project || true
Expand All @@ -95,11 +96,12 @@ install:
# any command which exits with a non-zero exit code causes the build to fail.
script:
# test that source-distributions can be generated
- (cd "." && cabal sdist)
- mv "."/dist/insert-ordered-containers-*.tar.gz ${DISTDIR}/
- cabal new-sdist all
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
- cd ${DISTDIR} || false
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
- "printf 'packages: insert-ordered-containers-*/*.cabal\\n' > cabal.project"
- "printf 'write-ghc-environment-files: always\\n' >> cabal.project"
- touch cabal.project.local
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- insert-ordered-containers | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- cat cabal.project || true
Expand All @@ -115,7 +117,6 @@ script:
- (cd insert-ordered-containers-* && cabal check)

# haddock
- rm -rf ./dist-newstyle
- if $HADDOCK; then cabal new-haddock -w ${HC} ${TEST} ${BENCH} all; else echo "Skipping haddock generation";fi

# Build without installed constraints for packages in global-db
Expand Down
6 changes: 3 additions & 3 deletions insert-ordered-containers.cabal
Expand Up @@ -21,8 +21,8 @@ tested-with:
GHC==7.10.3,
GHC==8.0.1,
GHC==8.2.2,
GHC==8.4.3,
GHC==8.6.1
GHC==8.4.4,
GHC==8.6.3

extra-source-files:
CHANGELOG.md
Expand Down Expand Up @@ -70,7 +70,7 @@ test-suite ins-ord-containers-tests
, unordered-containers
, base
, insert-ordered-containers
, tasty >= 0.10.1.2 && <1.2
, tasty >= 0.10.1.2 && <1.3
, tasty-quickcheck >= 0.8.3.2 && <0.11
, QuickCheck >=2.7.6 && <2.13
default-language: Haskell2010

1 comment on commit 73fdf9c

@bb010g
Copy link

@bb010g bb010g commented on 73fdf9c Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When are you planning on publishing these metadata changes on Hackage? tasty's 1.2 upper bound is currently causing various build problems for Nixpkgs.

Please sign in to comment.