Idris-dev/.travis.yml

40 lines
2.0 KiB
YAML
Raw Normal View History

language: haskell
2015-02-27 17:14:22 +03:00
ghc:
# Idris won't build on 7.4 and earlier due to dependency
# problems. 7.10 isn't yet supported on Travis.
- 7.6
- 7.8
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libghc-unordered-containers-dev libghc-mtl-dev libghc-network-dev libghc-transformers-dev libghc-text-dev libghc-utf8-string-dev libghc-vector-dev libghc-split-dev libghc-ansi-terminal-dev libghc-ansi-wl-pprint-dev
2013-11-28 02:01:38 +04:00
# trifecta dependencies
- sudo apt-get install -qq libghc-blaze-builder-dev libghc-blaze-html-dev libghc-bifunctors-dev libghc-hashable-dev libghc-semigroups-dev libghc-semigroupoids-dev libghc-parallel-dev libghc-comonad-dev libghc-terminfo-dev libghc-keys-dev
2014-05-05 13:51:28 +04:00
# Haddock dependencies
- sudo apt-get install hscolour
# test dependency
- sudo apt-get install -qq expect
2015-02-10 21:06:48 +03:00
- sudo apt-get install -qq cppcheck
install:
- cabal install -f FFI --enable-tests --dependencies-only --max-backjumps=-1
2014-07-23 11:07:05 +04:00
- ghc-pkg list
2013-06-29 04:51:44 +04:00
before_script:
- cabal sdist
- cd ..
- tar -xf Idris-dev/dist/idris*.tar.gz
- cd idris*
2013-06-29 04:51:44 +04:00
script:
2015-01-04 20:10:50 +03:00
- cabal configure -f FFI -f CI
- if [[ "$TESTS" != "doc" ]]; then cabal build; fi
- if [[ "$TESTS" != "doc" ]]; then cabal copy; fi
- if [[ "$TESTS" != "doc" ]]; then cabal register; fi
2015-03-19 22:46:03 +03:00
- if [[ "$TESTS" == "test_c" ]]; then cppcheck -j 2 --error-exitcode=1 ./rts/idris_bitstring.c ./rts/idris_bitstring.h ./rts/idris_gc.h ./rts/idris_gc.c ./rts/idris_gmp.h ./rts/idris_gmp.c ./rts/idris_heap.h ./rts/idris_heap.c ./rts/idris_main.c ./rts/idris_net.h ./rts/idris_net.c ./rts/idris_opts.h ./rts/idris_opts.c ./rts/idris_rts.h ./rts/idris_rts.c ./rts/idris_stats.h ./rts/idris_stats.c ./rts/idris_stdfgn.h ./rts/idris_stdfgn.c ./rts/libtest.c ; fi
- if [[ "$TESTS" == "test_llvm" ]]; then git clone --depth 1 https://github.com/idris-hackers/idris-llvm.git ; cd idris-llvm ; cabal install ; cd .. ; fi
2013-11-28 01:11:55 +04:00
- make -j2 $TESTS
env:
- TESTS="doc"
- TESTS="lib_doc"
- TESTS="test_c"
2015-01-20 17:54:39 +03:00
#- TESTS="test_llvm"
- TESTS="test_js"