-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·57 lines (44 loc) · 947 Bytes
/
ci.sh
File metadata and controls
executable file
·57 lines (44 loc) · 947 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr//bin/env bash
#
# build/ci.sh
#
# script that does various CI (Continous Integration) tasks for bashfoo
###
# by default, it
# - boostraps environment (makefoo)
# - configures
# - builds
# - makes fake installation
# - tests
# - makes distcheck
#
###
header()
{
echo "===================="
echo "| $@"
echo "--------------------"
}
set -e
header "makefoo"
if [ ! -d makefoo-master ] ; then
git clone https://github.com/zbigg/makefoo.git makefoo-master
else
( cd makefoo-master; git pull )
fi
header "aclocal"
aclocal -I makefoo-master
header "autoreconf"
autoreconf -i -f
header "configure"
./configure --with-makefoo-dir=makefoo-master
source makefoo_configured_defs.mk
#header "make"
#${MAKEFOO_MAKE}
header "make install"
${MAKEFOO_MAKE} install DESTDIR=`pwd`/.tmp-installation
rm -rf .tmp-installation
header "make check"
${MAKEFOO_MAKE} check
header "make distcheck"
${MAKEFOO_MAKE} distcheck