From 091d436c50d303d612b0110b9c946375a731aa8e Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Mon, 3 Jun 2019 11:31:45 -0400 Subject: [PATCH] Attempt to bring up CI. --- .travis.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..72f83ce28 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +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 +- cabal new-configure --enable-benchmarks --enable-tests --write-ghc-environment-files=always +- cabal new-build --only-dependencies + +script: +- cabal new-build +- cabal new-test semantic:test +- cabal check