blob: d0f356b8e10a189805bdea3dcccffe3d0bf08f0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#! /bin/sh
# This script is executed in the travis-ci environment.
# Stop in case of error
set -e
CDIR=$PWD
# Prepare
prefix="$CDIR/install-$1"
mkdir "$prefix"
mkdir build-$1
cd build-$1
# Configure
case "$1" in
mcode)
../configure --prefix="$prefix" ;;
llvm)
../configure --prefix="$prefix" --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 ..
|