2019-06-03 18:31:45 +03:00
|
|
|
language: c
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cabal/packages
|
|
|
|
- $HOME/.cabal/store
|
2019-06-14 18:36:55 +03:00
|
|
|
- $TRAVIS_BUILD_DIR/dist-newstyle
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
|
|
|
|
# remove files that are regenerated by 'cabal update'
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx
|
|
|
|
|
|
|
|
- rm -rfv $HOME/.cabal/packages/head.hackage
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- compiler: "ghc-8.6.4"
|
|
|
|
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.4], sources: [hvr-ghc]}}
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- mkdir -p $HOME/.local/bin
|
|
|
|
- "PATH=/opt/ghc/bin:$HOME/local/bin:$PATH"
|
|
|
|
- ghc --version
|
|
|
|
- cabal --version
|
|
|
|
|
|
|
|
install:
|
2019-06-13 06:14:18 +03:00
|
|
|
- cabal new-update -v
|
2019-06-13 06:44:40 +03:00
|
|
|
- cabal new-configure --enable-tests --disable-optimization --write-ghc-environment-files=always --jobs=2
|
2019-06-13 06:14:18 +03:00
|
|
|
- cabal new-build --only-dependencies
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
script:
|
2019-09-03 20:34:08 +03:00
|
|
|
- cabal new-build
|
2019-06-11 00:54:36 +03:00
|
|
|
- cabal new-run semantic:test
|
|
|
|
- cabal new-run semantic-core:spec
|
2019-06-25 21:28:40 +03:00
|
|
|
- cabal new-run semantic-core:doctest
|
2019-08-13 21:19:37 +03:00
|
|
|
- cabal new-run semantic-python:test
|
2019-09-21 00:37:07 +03:00
|
|
|
- cabal new-run semantic-source:test
|
|
|
|
- cabal new-run semantic-source:doctest
|
2019-06-11 22:41:13 +03:00
|
|
|
# parse-examples is disabled because it slaughters our CI
|
|
|
|
# - cabal new-run semantic:parse-examples
|
2019-06-05 15:34:33 +03:00
|
|
|
|
|
|
|
# Any branch linked with a pull request will be built, as well as the non-PR
|
|
|
|
# branches listed below:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|