Skip to content

Commit 95585fc

Browse files
committed
Simplified .travis.yml
1 parent 084ca18 commit 95585fc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ before_install:
5757

5858
esac
5959

60+
if [ -n "$AESONVER" ]; then
61+
echo "constraints:aeson=="$AESONVER >> cabal.config;
62+
fi
63+
6064
- sudo add-apt-repository -y ppa:hvr/ghc
6165
- sudo apt-get update
6266
- sudo apt-get install cabal-install-1.18 ghc-$GHCVER
6367
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
6468

6569
install:
6670
- cabal-1.18 update
67-
- if [ -n "$AESONVER" ]; then
68-
cabal-1.18 install aeson-$AESONVER;
69-
fi
7071
- cabal-1.18 install --only-dependencies --enable-tests
7172

7273
# Here starts the actual work to be performed for the package under
@@ -98,8 +99,6 @@ script:
9899

99100
# build demo
100101
- cd ..;
101-
cabal-1.18 install --only-dependencies -f demo;
102-
- cabal-1.18 configure -f demo
103-
- cabal-1.18 build
102+
cabal-1.18 install -f demo;
104103

105104
# EOF

0 commit comments

Comments
 (0)