forked from idris-hackers/idris-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (51 loc) · 1.99 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: haskell
before_install:
## Emacs 24.3
- sudo add-apt-repository -y ppa:cassou/emacs
- sudo apt-get update -qq
- sudo apt-get -f install
- sudo apt-get install -qq emacs24 emacs24-el
## Emacs 24.4
- wget http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz
- tar -xf emacs-24.4.tar.xz
- cd emacs-24.4
- ./configure --prefix=/usr/local/emacs-24.4 --with-xpm=no --with-gif=no
- make
- sudo make install
- cd ..
## Idris prereqs
- 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
# Install Idris
install:
- pushd .
- git clone https://github.com/idris-lang/Idris-dev.git /tmp/Idris-dev
- cd /tmp/Idris-dev
- cabal install -f FFI -f LLVM --only-dependencies --enable-tests
- cabal configure -f FFI -f LLVM
- cabal sdist
- cd ..
- tar -xf Idris-dev/dist/idris*.tar.gz
- cd idris*
- cabal configure -f FFI -f LLVM
- cabal build
- cabal copy
before_script: true
script:
- popd
# emacs 24.3
- make build
- make test
- make clean
# emacs 24.4
- make build EMACS=/usr/local/emacs-24.4/bin/emacs
- make test EMACS=/usr/local/emacs-24.4/bin/emacs