Commit 081722fa authored by Vaibhav Sagar's avatar Vaibhav Sagar

.travis.yml: test with GHC 8.8.1

parent 85acd85c
...@@ -245,6 +245,83 @@ matrix: ...@@ -245,6 +245,83 @@ matrix:
# Enable caching. # Enable caching.
sudo: false sudo: false
# Caching so the next build will be fast too.
# These caches are the same between resolvers, but this is fine,
# as Stack differentiates between its resolvers.
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
# Enable packages we need.
# Not all packages are available – see before_install for from-source builds.
addons:
apt:
packages:
- libmagic-dev # magic
- libgmp-dev # ghc
- libblas-dev # hmatrix
- liblapack-dev # hmatrix
- libcairo2-dev # cairo
- libpango1.0-dev # pango
- libzmq3-dev # zmq
before_install:
# Download and unpack the stack executable
- export PATH=$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.9.3/stack-1.9.3-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Upgrades to avoid later build problems
- pip install -U pip
- pip install -U setuptools
# Install from requirements.txt
- pip install -r requirements.txt
# This step takes the longest, and is what generates the Stack cache.
install:
- |
# Used to avoid 'source and destination file are the same' error
mv $USE_STACK_YAML intermediate-stack.yaml
mv intermediate-stack.yaml stack.yaml
echo "apply-ghc-options: everything" >> stack.yaml
- stack setup
# - stack install gtk2hs-buildtools --fast
- stack build hmatrix --fast
- stack build --dependencies-only --fast
script:
- stack test --no-terminal --fast
- |
set -e
if $DISPLAY; then
TOP=$(pwd)
stack build --no-terminal --fast
# Ensure that ipython-kernel examples build successfully.
stack build ipython-kernel --flag ipython-kernel:examples --fast
# Ensure that IHaskell notebook remains unchanged.
# Run the notebook to regenerate the outputs, then compare the new notebook to the old one.
stack install --fast
stack exec -- ihaskell install --stack
test/acceptance.nbconvert.sh stack exec -- jupyter nbconvert
fi
- env: DISPLAY=true USE_STACK_YAML="stack-8.8.yaml" # GHC 8.8.1
language: python
dist: xenial
# Test against different stack LTS versions.
# Choose a lightweight base image; we provide our own build tools.
python: "3.6"
# Enable caching.
sudo: false
# Caching so the next build will be fast too. # Caching so the next build will be fast too.
# These caches are the same between resolvers, but this is fine, # These caches are the same between resolvers, but this is fine,
# as Stack differentiates between its resolvers. # as Stack differentiates between its resolvers.
......
resolver: nightly-2019-10-05
flags: {}
packages:
- .
- ./ipython-kernel
- ./ghc-parser
# - ./ihaskell-display/ihaskell-aeson
# - ./ihaskell-display/ihaskell-blaze
# - ./ihaskell-display/ihaskell-charts
# - ./ihaskell-display/ihaskell-diagrams
# - ./ihaskell-display/ihaskell-gnuplot
# - ./ihaskell-display/ihaskell-hatex
# - ./ihaskell-display/ihaskell-juicypixels
# - ./ihaskell-display/ihaskell-magic
# - ./ihaskell-display/ihaskell-plot
# - ./ihaskell-display/ihaskell-static-canvas
# - ./ihaskell-display/ihaskell-widgets
# extra-deps:
# - Chart-cairo-1.9.1
# - diagrams-cairo-1.4.1
# - cairo-0.13.6.0
# - pango-0.13.6.0
# - glib-0.13.7.0
# - gtk2hs-buildtools-0.13.5.0
# - magic-1.1
# - plot-0.2.3.9
ghc-options:
# Eventually we want "$locals": -Wall -Wpartial-fields -Werror
# ghc-parser: -Wall -Wpartial-fields -Werror
# ihaskell: -Wall -Wpartial-fields -Werror
# ihaskell-widgets: -Wall -Wpartial-fields -Werror
docker:
repo: "ihaskell-dev:latest"
enable: false
nix:
enable: false
packages:
- blas
- cairo
- file
- gcc
- gfortran.cc.lib
- liblapack
- ncurses
- pango
- pkgconfig
- zeromq
- zlib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment