Adapt travis testing

This commit is contained in:
Markus Pfeiffer 2014-09-18 10:53:37 +01:00
parent 674b58fae5
commit de45d29d0b

View File

@ -12,14 +12,9 @@ before_install:
- sudo apt-get install -qq expect - sudo apt-get install -qq expect
- cabal install alex-3.1.3 - cabal install alex-3.1.3
install: install:
- cabal install -f FFI --only-dependencies --enable-tests - cabal install -f FFI --enable-tests
- ghc-pkg list - ghc-pkg list
before_script: before_script:
- cd ..
- git clone --depth 1 git@github.com:idris-hackers/idris-llvm.git
- cd idris-llvm
- cabal install
- cd ..
- cabal sdist - cabal sdist
- cd .. - cd ..
- tar -xf Idris-dev/dist/idris*.tar.gz - tar -xf Idris-dev/dist/idris*.tar.gz
@ -28,6 +23,13 @@ script:
- cabal configure -f FFI - cabal configure -f FFI
- if [[ "$TESTS" != "doc" ]]; then cabal build; fi - if [[ "$TESTS" != "doc" ]]; then cabal build; fi
- if [[ "$TESTS" != "doc" ]]; then cabal copy; fi - if [[ "$TESTS" != "doc" ]]; then cabal copy; fi
- git clone --depth 1 https://github.com/markuspf/idris-llvm.git
- cd idris-llvm
- cabal install --only-dependencies
- cabal configure
- cabal build
- cabal copy
- cd ..
- make -j2 $TESTS - make -j2 $TESTS
env: env:
- TESTS="doc" - TESTS="doc"