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:
|
2019-10-21 20:30:47 +03:00
|
|
|
- compiler: "ghc-8.6.5"
|
|
|
|
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.5], sources: [hvr-ghc]}}
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
before_install:
|
2019-10-21 23:28:20 +03:00
|
|
|
- mkdir -p $HOME/.local/bin
|
2019-10-21 23:51:56 +03:00
|
|
|
- curl -L -o /tmp/hlint.tar.gz "https://github.com/ndmitchell/hlint/releases/download/v2.2.3/hlint-2.2.3-x86_64-linux.tar.gz"
|
|
|
|
- tar -xf /tmp/hlint.tar.gz -C $HOME/.local/bin
|
2019-06-03 18:31:45 +03:00
|
|
|
- "PATH=/opt/ghc/bin:$HOME/local/bin:$PATH"
|
|
|
|
- ghc --version
|
|
|
|
- cabal --version
|
2019-10-21 23:28:20 +03:00
|
|
|
- hlint --version
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
install:
|
2019-10-21 20:39:54 +03:00
|
|
|
- cabal v2-update -v
|
|
|
|
- cabal v2-configure --enable-tests --enable-benchmarks --disable-optimization --write-ghc-environment-files=always --jobs=2
|
|
|
|
- cabal v2-build --only-dependencies
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
script:
|
2019-10-21 23:28:20 +03:00
|
|
|
- hlint src semantic-python
|
2019-10-21 20:39:54 +03:00
|
|
|
- cabal v2-build
|
|
|
|
- cabal v2-run semantic:test
|
|
|
|
- cabal v2-run semantic-core:test
|
|
|
|
- cabal v2-run semantic-python:test
|
|
|
|
- cabal v2-run semantic-source:test
|
|
|
|
- cabal v2-run semantic-source:doctest
|
2019-06-11 22:41:13 +03:00
|
|
|
# parse-examples is disabled because it slaughters our CI
|
2019-10-21 20:39:54 +03:00
|
|
|
# - cabal v2-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
|