diff options
author | Andor Penzes <andor.penzes@gmail.com> | 2015-12-30 02:00:38 +0100 |
---|---|---|
committer | Andor Penzes <andor.penzes@gmail.com> | 2015-12-30 02:00:38 +0100 |
commit | 8591df23cef7254bd5244bd96213e9153cfc67e7 (patch) | |
tree | b04b1775d88a9174eeeaa0ea0fe32c1c80231aee /.travis.yml | |
parent | eab2d024dd791ae2bf53b7ce217257d470f3b4e3 (diff) |
add .travis.yml
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..93bfd814 --- /dev/null +++ b/.travis.yml | |||
@@ -0,0 +1,32 @@ | |||
1 | |||
2 | language: c | ||
3 | |||
4 | sudo: false | ||
5 | |||
6 | addons: | ||
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 | |||
16 | before_install: | ||
17 | - grep '\(MemTotal\|SwapTotal\)' /proc/meminfo | ||
18 | - 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 | ||
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 | |||
29 | script: | ||
30 | - cabal install --only-dependencies -j1 | ||
31 | - cabal install -j1 | ||
32 | - ./run-test-suite.sh | ||