summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAndor Penzes <andor.penzes@gmail.com>2016-01-04 11:36:25 +0100
committerAndor Penzes <andor.penzes@gmail.com>2016-01-04 13:44:42 +0100
commiteed3e9bac1d754fff05cc6bf5ab222439b544646 (patch)
tree914d0c45ba127987ee3d655740e44ed5af1fe080 /.travis.yml
parent39d4b250cbc525f195b723d8aa1ecc8d49582976 (diff)
use docker image at testing
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 7 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index 93bfd814..d0a4df64 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,32 +1,14 @@
1 1
2language: c 2language: c
3 3
4sudo: false 4sudo: required
5 5services:
6addons: 6 - docker
7 apt:
8 sources:
9 - hvr-ghc
10 packages:
11 - ghc-7.10.2
12 - happy-1.19.3
13 - alex-3.1.4
14 - cabal-install-1.22
15 7
16before_install: 8before_install:
17 - grep '\(MemTotal\|SwapTotal\)' /proc/meminfo 9 - grep '\(MemTotal\|SwapTotal\)' /proc/meminfo
18 - git show | head -1 # (for matching against commit hash given on the travis log web page) 10 - git show | head -1 # (for matching against commit hash given on the travis log web page)
19 - export PATH=/opt/ghc/7.10.2/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.3/bin:/opt/cabal/1.22/bin:$PATH 11 - docker pull lambdacube3d/lambdacube3d
20 - export PATH=~/.cabal/bin:$PATH
21 - cabal update
22 - git clone https://github.com/lambdacube3d/lambdacube-ir.git
23 - cd lambdacube-ir/lambdacube-ir.haskell
24 - cabal install --only-dependencies -j1
25 - cabal install -j1
26 - cd ../..
27 - rm -rf lambdacube-ir
28 12
29script: 13script:
30 - cabal install --only-dependencies -j1 14 - docker run --rm -it -v `pwd`:/root/source/lambdacube-compiler lambdacube3d/lambdacube3d /bin/sh -c "cd /root/source/lambdacube-compiler;./run-test-suite.sh"
31 - cabal install -j1
32 - ./run-test-suite.sh