#! /bin/sh # This script is executed in the travis-ci environment. # Stop in case of error set -e CDIR=$PWD # Prepare mkdir build-$1 mkdir install-$1 cd build-$1 # Configure case "$1" in mcode) ../configure --prefix=$CDIR/install-mcode64 ;; llvm) ../configure --prefix=$CDIR/install-llvm --with-llvm-config=llvm-config-3.5 ;; *) echo "unknown build $1" exit 1 ;; esac # Build make make install cd .. # Test export GHDL=$CDIR/install-$1/bin/ghdl cd testsuite gnatmake get_entities ./testsuite.sh cd ..