Improve travis settings

This commit is contained in:
vrom911 2017-12-12 02:28:48 +03:00
parent 5ba8834ad8
commit 74671cc707
No known key found for this signature in database
GPG Key ID: A5849E99E6D02B61
5 changed files with 49 additions and 43 deletions

View File

@ -1,57 +1,62 @@
language: c
sudo: true
language: haskell
git:
depth: 5
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-8.0.2.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.2
- env: GHCVER=8.2.1 STACK_YAML=stack.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.2.1
cache:
directories:
- "$HOME/.stack"
- "$HOME/build/serokell/universum/.stack-work"
matrix:
include:
- ghc: 7.10.3
env: GHCVER='7.10.3' STACK_YAML="$HOME/build/serokell/universum/stack-$GHCVER.yaml"
- ghc: 8.0.1
env: GHCVER='8.0.1' STACK_YAML="$HOME/build/serokell/universum/stack-$GHCVER.yaml"
- ghc: 8.0.2
env: GHCVER='8.0.2' STACK_YAML="$HOME/build/serokell/universum/stack.yaml"
- ghc: 8.2.2
env: GHCVER='8.2.2' STACK_YAML="$HOME/build/serokell/universum/stack-$GHCVER.yaml"
addons:
apt:
sources:
- sourceline: 'ppa:hvr/ghc'
packages:
- libgmp-dev
- cabal-install-2.0
before_install:
# 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
- 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'
- stack --version
install:
- stack --version
- stack -j 2 setup --no-terminal
- travis_wait 30 stack setup --no-terminal
- stack ghc -- --version
- stack -j 2 build --only-snapshot --no-terminal
- travis_wait 40 stack build --only-dependencies --no-terminal
- travis_wait 40 stack build --test --bench --haddock --no-run-tests --no-run-benchmarks --no-haddock-deps --no-terminal
script:
- stack -j 2 build --bench --no-run-benchmarks --haddock --no-terminal
- travis_wait 40 stack build --test --no-terminal
notifications:
email: false

View File

@ -2,6 +2,7 @@
=====
* [#79](https://github.com/serokell/universum/issues/79):
Import '(<>)' from Semigroup, not Monoid.
* Improve travis configartion.
0.8.0
=====

View File

@ -1,4 +1,4 @@
resolver: lts-8.15
resolver: nightly-2017-10-08
packages:
- '.'

View File

@ -1,4 +1,4 @@
resolver: nightly-2017-10-08
resolver: lts-8.15
packages:
- '.'

View File

@ -17,7 +17,7 @@ bug-reports: https://github.com/serokell/universum/issues
tested-with: GHC == 7.10.3
, GHC == 8.0.1
, GHC == 8.0.2
, GHC == 8.2.1
, GHC == 8.2.2
source-repository head
type: git