Permalink
Browse files

Test-sdist for travis.

  • Loading branch information...
chrisdone committed Sep 2, 2012
1 parent b417a92 commit 8b19f23387378737b388010be8ff0ea1b281030c
Showing with 23 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 .travis.yml
  3. +20 −0 scripts/test-sdist
  4. +1 −0 scripts/travis-test
View
@@ -9,3 +9,4 @@ docs/home.js
*.hi
*.o
*.hcr
+hackage-test/
View
@@ -2,7 +2,7 @@ language: "haskell"
install:
- "cabal install" # make sure it builds without -fdevel too!
- "cabal install -fdevel" # but we need -fdevel to run the tests
-script: "fay-tests --plain"
+script: "scripts/travis-test"
notifications:
irc:
channels: "irc.freenode.net#fay"
View
@@ -0,0 +1,20 @@
+rm -rf hackage-test
+rm dist/*.tar.gz
+cabal sdist
+mkdir hackage-test
+cabal_dev_dir=`pwd`/cabal-dev
+cd hackage-test
+tar xf ../dist/*.tar.gz
+cd fay*
+ln -s $cabal_dev_dir cabal-dev
+
+if [ `which cabal-dev` ]
+then
+ cabal-dev install -fdevel --force-reinstalls
+ cabal-dev/bin/fay-docs
+ cabal-dev/bin/fay-tests
+else
+ cabal install -fdevel
+ fay-docs
+ fay-tests
+fi
View
@@ -0,0 +1 @@
+dist/build/fay-tests/fay-tests --plain && scripts/test-sdist

0 comments on commit 8b19f23

Please sign in to comment.