From 29a6356697874cb5221e39dac717b9257f72161f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 14 Jan 2016 20:38:36 +0100 Subject: travis: also build with llvm. --- dist/travis-ci.sh | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'dist') 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 .. -- cgit v1.2.3