aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-01-14 20:38:36 +0100
committerTristan Gingold <tgingold@free.fr>2016-01-14 20:38:36 +0100
commit29a6356697874cb5221e39dac717b9257f72161f (patch)
tree3c7b3dfb1c0143b2b5c0eae0b0039e31d4e5e5f4 /dist
parentfee05c69df9f6a702e4f36da17ae0fea46dcdb2d (diff)
downloadghdl-29a6356697874cb5221e39dac717b9257f72161f.tar.gz
ghdl-29a6356697874cb5221e39dac717b9257f72161f.tar.bz2
ghdl-29a6356697874cb5221e39dac717b9257f72161f.zip
travis: also build with llvm.
Diffstat (limited to 'dist')
-rwxr-xr-xdist/travis-ci.sh31
1 files changed, 27 insertions, 4 deletions
diff --git a/dist/travis-ci.sh b/dist/travis-ci.sh
index 87b0c4612..5187e4799 100755
--- a/dist/travis-ci.sh
+++ b/dist/travis-ci.sh
@@ -4,12 +4,35 @@
# Stop in case of error
set -e
-# Build
-./configure
+CDIR=$PWD
+
+# Build mcode64
+mkdir build-mcode64
+mkdir install-mcode64
+cd build-mcode64
+../configure --prefix=$CDIR/install-mcode64
make
+make install
+cd ..
-# Test
-export GHDL=$PWD/ghdl_mcode
+# Test mcode64
+export GHDL=$CDIR/install-mcode64/bin/ghdl
cd testsuite
gnatmake get_entities
./testsuite.sh
+cd ..
+
+# build for llvm
+mkdir build-llvm
+mkdir install-llvm
+cd build-llvm
+../configure --prefix=$CDIR/install-llvm --with-llvm-config=llvm-config-3.5
+make
+make install
+cd ..
+
+# Test llvm
+export GHDL=$CDIR/install-llvm/bin/ghdl
+cd testsuite
+./testsuite.sh
+cd ..