aboutsummaryrefslogtreecommitdiffstats
path: root/dist/travis-ci.sh
blob: 5187e4799d81b70102a453b0ea68e1892b7a75d2 (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
#! /bin/sh
# This script is executed in the travis-ci environment.

# Stop in case of error
set -e

CDIR=$PWD

# Build mcode64
mkdir build-mcode64
mkdir install-mcode64
cd build-mcode64
../configure --prefix=$CDIR/install-mcode64
make
make install
cd ..

# 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 ..