mirror of
https://github.com/kowainik/relude.git
synced 2024-09-11 04:35:39 +03:00
Update travis.yml
This commit is contained in:
parent
91f97930d9
commit
b511e8f428
90
.travis.yml
90
.travis.yml
@ -1,61 +1,47 @@
|
||||
# NB: don't set `language: haskell` here
|
||||
language: c
|
||||
|
||||
# See also https://github.com/hvr/multi-ghc-travis for more information
|
||||
matrix:
|
||||
include:
|
||||
- env: GHCVER=7.10.3 STACK_YAML=stack-7.10.3.yaml
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- hvr-ghc
|
||||
packages:
|
||||
- ghc-7.10.3
|
||||
- env: GHCVER=8.0.1 STACK_YAML=stack-8.0.1.yaml
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- hvr-ghc
|
||||
packages:
|
||||
- ghc-8.0.1
|
||||
- env: GHCVER=8.0.2 STACK_YAML=stack.yaml
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- hvr-ghc
|
||||
packages:
|
||||
- ghc-8.0.2
|
||||
|
||||
# The following lines enable several GHC versions and/or HP versions
|
||||
# to be tested; often it's enough to test only against the last
|
||||
# release of a major GHC version. Setting HPVER implictly sets
|
||||
# GHCVER. Omit lines with versions you don't need/want testing for.
|
||||
env:
|
||||
- CABALVER=1.22 GHCVER=7.10.1
|
||||
- CABALVER=1.22 GHCVER=7.10.2
|
||||
- CABALVER=1.22 GHCVER=7.10.3
|
||||
- CABALVER=1.24 GHCVER=8.0.1
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.stack"
|
||||
- "$HOME/build/serokell/universum/.stack-work"
|
||||
|
||||
# Note: the distinction between `before_install` and `install` is not
|
||||
# important.
|
||||
before_install:
|
||||
- case "$HPVER" in
|
||||
"") ;;
|
||||
|
||||
*)
|
||||
export GHCVER=unknown ;
|
||||
echo "unknown/invalid Haskell Platform requested" ;
|
||||
exit 1 ;;
|
||||
|
||||
esac
|
||||
|
||||
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
|
||||
- travis_retry sudo apt-get update
|
||||
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
|
||||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
||||
# Download and unpack the stack executable
|
||||
- mkdir -p ~/.local/bin
|
||||
- export PATH=$HOME/.local/bin:$PATH
|
||||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||
# ghc
|
||||
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
|
||||
|
||||
install:
|
||||
- cabal --version
|
||||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
||||
- travis_retry cabal update
|
||||
- cabal install --only-dependencies --enable-tests --enable-benchmarks
|
||||
- stack --version
|
||||
- stack -j 2 setup --no-terminal
|
||||
- stack ghc -- --version
|
||||
- stack -j 2 build --only-snapshot --no-terminal
|
||||
|
||||
# Here starts the actual work to be performed for the package under
|
||||
# test; any command which exits with a non-zero exit code causes the
|
||||
# build to fail.
|
||||
script:
|
||||
- if [ -f configure.ac ]; then autoreconf -i; fi
|
||||
# -v2 provides useful information for debugging
|
||||
- cabal configure --enable-tests --enable-benchmarks -v2
|
||||
|
||||
# this builds all libraries and executables
|
||||
# (including tests/benchmarks)
|
||||
- cabal build
|
||||
|
||||
- cabal check
|
||||
|
||||
# tests that a source-distribution can be generated
|
||||
- cabal sdist
|
||||
|
||||
# check that the generated source-distribution can be built & installed
|
||||
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
|
||||
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")
|
||||
|
||||
# EOF
|
||||
- stack -j 2 build --no-terminal
|
@ -1,4 +1,4 @@
|
||||
resolver: lts-7.9
|
||||
resolver: lts-8.2
|
||||
packages:
|
||||
- '.'
|
||||
extra-deps:
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: universum
|
||||
version: 0.2.1
|
||||
version: 0.2.1.1
|
||||
synopsis: Custom prelude used in Serokell
|
||||
description: Custom prelude used in Serokell
|
||||
homepage: https://github.com/serokell/universum
|
||||
@ -7,18 +7,16 @@ license: MIT
|
||||
license-file: LICENSE
|
||||
author: Stephen Diehl
|
||||
maintainer: hi@serokell.io
|
||||
copyright: 2016-2016 Stephen Diehl, 2016-2016 Serokell
|
||||
copyright: 2016-2016 Stephen Diehl, 2016-2017 Serokell
|
||||
category: Prelude
|
||||
build-type: Simple
|
||||
extra-source-files:
|
||||
CHANGES.md
|
||||
extra-source-files: CHANGES.md
|
||||
cabal-version: >=1.10
|
||||
tested-with:
|
||||
GHC == 7.10.1,
|
||||
GHC == 7.10.2,
|
||||
GHC == 7.10.3,
|
||||
GHC == 8.0.1
|
||||
Bug-Reports: https://github.com/serokell/universum/issues
|
||||
tested-with:
|
||||
GHC == 7.10.3,
|
||||
GHC == 8.0.1,
|
||||
GHC == 8.0.2
|
||||
|
||||
Source-Repository head
|
||||
type: git
|
||||
|
Loading…
Reference in New Issue
Block a user