Skip to content

Commit

Permalink
Simplify travis build script with cabal projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz committed Apr 20, 2020
1 parent 9ec214c commit 38046cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,5 +20,4 @@ deploy:
repo: turion/rhine
tags: true
condition:
- $PACKAGE =~ ^rhine|rhine-gloss$
- $TRAVIS_HASKELL_VERSION = 8.2.2
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: */*.cabal

0 comments on commit 38046cd

Please sign in to comment.