2019-06-03 18:31:45 +03:00
|
|
|
language: c
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cabal/packages
|
|
|
|
- $HOME/.cabal/store
|
|
|
|
|
|
|
|
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:
|
|
|
|
- cabal new-update
|
2019-06-03 19:41:00 +03:00
|
|
|
- cabal new-configure --enable-tests --write-ghc-environment-files=always
|
2019-06-03 18:54:49 +03:00
|
|
|
- cabal new-build --only-dependencies -j
|
2019-06-03 18:31:45 +03:00
|
|
|
|
|
|
|
script:
|
2019-06-04 21:29:46 +03:00
|
|
|
- cabal new-build -j semantic-core semantic:exe:semantic
|
2019-06-05 00:11:25 +03:00
|
|
|
- cabal new-test semantic:test semantic:parse-examples semantic-core:spec
|