Add GHC 8.0 to the test matrix.

This commit is contained in:
Matvey Aksenov 2016-08-27 14:20:51 +00:00
parent 7a1214f773
commit f60e9e5f4d
5 changed files with 30 additions and 32 deletions

View File

@ -1,35 +1,33 @@
env: language: c
- CABALVER=1.18 GHCVER=7.6.3
- CABALVER=1.18 GHCVER=7.8.4 sudo: false
- CABALVER=1.22 GHCVER=7.10.1
matrix:
include:
- env: CABALVER=1.16 GHCVER=7.6.3
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
- env: CABALVER=1.18 GHCVER=7.8.4
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
- env: CABALVER=1.22 GHCVER=7.10.3
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3],sources: [hvr-ghc]}}
- env: CABALVER=1.24 GHCVER=8.0.1
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1],sources: [hvr-ghc]}}
- env: CABALVER=head GHCVER=head
addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
allow_failures:
- env: CABALVER=1.16 GHCVER=7.6.3 # weird spec problems
- env: CABALVER=1.18 GHCVER=7.8.4 # weird spec problems
- env: CABALVER=head GHCVER=head
before_install: before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER npm
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install: install:
- cabal --version - cabal update
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" - cabal install --only-dependencies --enable-tests ldap-client.cabal
- travis_retry cabal update
- cabal install --only-dependencies --enable-tests --enable-benchmarks
- npm install ldapjs - npm install ldapjs
script: script:
- cabal configure --enable-tests -v2 - cabal install --enable-tests ldap-client.cabal
- cabal build - cabal sdist && cabal install --enable-tests dist/ldap-client-*.tar.gz
- cabal test
- |
if [ $GHCVER = "7.10.1" ]; then
cabal check
fi
- cabal sdist
- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
cd dist/;
if [ -f "$SRC_TGZ" ]; then
cabal install --force-reinstalls "$SRC_TGZ";
else
echo "expected '$SRC_TGZ' not found";
exit 1;
fi

View File

@ -1,4 +1,4 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }: let { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc801" }: let
ghc = nixpkgs.pkgs.haskell.packages.${compiler}; ghc = nixpkgs.pkgs.haskell.packages.${compiler};
npm = import ./npm {}; npm = import ./npm {};
in in

View File

@ -75,7 +75,7 @@ let
in in
rec { rec {
nodejs = pkgs."nodejs-${replaceDots "_" nodejsVersion}" or ( nodejs = pkgs.nodejs or (
throw "The given nodejs version ${nodejsVersion} has not been defined." throw "The given nodejs version ${nodejsVersion} has not been defined."
); );
buildNodePackage = import ./buildNodePackage.nix ({ buildNodePackage = import ./buildNodePackage.nix ({

View File

@ -1,4 +1,4 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }: let { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc801" }: let
inherit (nixpkgs) pkgs; inherit (nixpkgs) pkgs;
ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages(ps: [ ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages(ps: [
ps.hdevtools ps.doctest ps.hspec-discover ps.hlint ps.ghc-mod ps.hdevtools ps.doctest ps.hspec-discover ps.hlint ps.ghc-mod