check.sh 547 Bytes
Newer Older
Vivien Kraus's avatar
Vivien Kraus committed
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
#!/bin/sh

apt-get update
apt-get upgrade -y
apt-get install -y \
	build-essential \
	dbus \
	dbus-x11 \
	libglib2.0-dev \
	libreadline-dev \
	libxml2 \
	libxml2-dev \
	nettle-dev \
	pkg-config \
	valgrind

VERSION=$(cat dist/version)

cp dist/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir build || exit 1
cd build/
../tarot-$VERSION/configure \
    --enable-silent-rules=yes \
    --enable-valgrind=yes \
    --disable-program \
    || (cat config.log; exit 1)
make -j 16 check || exit 1
make distclean || exit 1