Skip to content

Commit

Permalink
Merge pull request #135 from Toxaris/topic/travis-simple
Browse files Browse the repository at this point in the history
Travis: run all tests from allTests.sh
  • Loading branch information
Blaisorblade committed Feb 8, 2015
2 parents 0954d1b + 84c8321 commit 0cefcd8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ cache:
directories:
- ~/.cabal
- ~/.ghc
script:
- ./mostTests.sh
- cabal install dist/*.tar.gz --enable-tests
15 changes: 1 addition & 14 deletions allTests.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
#!/bin/sh -x
[ -z "$CABAL" ] && CABAL=cabal

set -e

$CABAL clean
$CABAL check

$CABAL install --only-dependencies --enable-tests
$CABAL configure --enable-tests
$CABAL build

$CABAL sdist

dist/build/tests/tests --hide-successes --maximum-generated-tests=10000 --maximum-unsuitable-generated-tests=10000 --jxml=junit-log.xml
. mostTests.sh

nameBase=`runhaskell src-tools/package-info.hs --package`
$CABAL install dist/$nameBase.tar.gz --enable-tests
16 changes: 16 additions & 0 deletions mostTests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh -x
[ -z "$CABAL" ] && CABAL=cabal

set -e

rm -rf dist
$CABAL clean
$CABAL check

$CABAL install --only-dependencies --enable-tests
$CABAL configure --enable-tests
$CABAL build

$CABAL sdist

dist/build/tests/tests --hide-successes --maximum-generated-tests=10000 --maximum-unsuitable-generated-tests=10000 --jxml=junit-log.xml
1 change: 1 addition & 0 deletions pts.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Extra-source-files: examples/Arithmetics.lpts
examples/ChurchNumbers.lpts
examples/Functions.lpts
examples/Inference.lpts
examples/Syntax.lpts
Data-files: emacs/pts-mode.el
Cabal-version: >= 1.8

Expand Down

0 comments on commit 0cefcd8

Please sign in to comment.