From 38046cd3ce44bcde67d49f3e3c0cf85f53874283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Mon, 20 Apr 2020 19:08:23 +0200 Subject: [PATCH] Simplify travis build script with cabal projects --- .travis.yml | 13 ++----------- cabal.project | 1 + 2 files changed, 3 insertions(+), 11 deletions(-) create mode 100644 cabal.project diff --git a/.travis.yml b/.travis.yml index 3a8b718f4..5498969ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,19 +5,11 @@ ghc: - '8.4.3' - '8.2.2' - '8.0.2' -env: - - PACKAGE=rhine - - PACKAGE=rhine-gloss - - PACKAGE=rhine-examples before_install: - sudo apt-get update -qq - sudo apt-get install -qq libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev - - cd rhine - - cabal sandbox init - - cd .. - - cd ${PACKAGE} - - cabal sandbox init - - cabal sandbox add-source ../rhine +script: cabal new-build all && cabal new-test all +install: skip deploy: provider: hackage @@ -28,5 +20,4 @@ deploy: repo: turion/rhine tags: true condition: - - $PACKAGE =~ ^rhine|rhine-gloss$ - $TRAVIS_HASKELL_VERSION = 8.2.2 diff --git a/cabal.project b/cabal.project new file mode 100644 index 000000000..f44a24c63 --- /dev/null +++ b/cabal.project @@ -0,0 +1 @@ +packages: */*.cabal