forked from idris-lang/Idris-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.45 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: haskell
before_install:
- sudo add-apt-repository --yes ppa:h-rayflood/llvm
- sudo apt-get update -qq
- sudo apt-get install -qq libgc-dev llvm-3.3
- sudo apt-get install -qq libghc-unordered-containers-dev libghc-mtl-dev libghc-network-dev libghc-xml-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
# 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
# Haddock dependencies
- sudo apt-get install hscolour
# test dependency
- sudo apt-get install -qq expect
- cabal install alex-3.1.3
install:
- cabal install -f FFI --enable-tests --dependencies-only
- ghc-pkg list
before_script:
- cabal sdist
- cd ..
- tar -xf Idris-dev/dist/idris*.tar.gz
- cd idris*
script:
- cabal configure -f FFI
- if [[ "$TESTS" != "doc" ]]; then cabal build; fi
- if [[ "$TESTS" != "doc" ]]; then cabal copy; fi
- if [[ "$TESTS" != "doc" ]]; then cabal register; 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
- make -j2 $TESTS
env:
- TESTS="doc"
- TESTS="lib_doc"
- TESTS="test_c"
- TESTS="test_llvm"
- TESTS="test_js"