check.sh 1.17 KB
Newer Older
Vivien Kraus's avatar
Vivien Kraus committed
1
#!/bin/sh
2
3
4
5
6
# tarot implements the rules of the tarot game
# Copyright (C) 2019  Vivien Kraus

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, version 3 of the License.
8
9
10
11
12
13
14
15
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Vivien Kraus's avatar
Vivien Kraus committed
16
17
18
19
20

apt-get update
apt-get upgrade -y
apt-get install -y \
	build-essential \
21
	guile-2.2-dev \
Vivien Kraus's avatar
Vivien Kraus committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
	libglib2.0-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