-
Notifications
You must be signed in to change notification settings - Fork 76
/
ci-test
executable file
·51 lines (39 loc) · 1.21 KB
/
ci-test
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
#!/bin/bash -e
#
# Written 2018 by Tim Ruehsen
echo -n "Build the tarball from scratch ? [y/N] "
read x
if test "$x" = "y" || test "$x" = "Y"; then
echo "* Bootstrap"
./bootstrap >/dev/null
echo "* Configure"
./configure -q
echo "* Make"
make -s -j$(nproc) clean
make -s -j$(nproc)
echo "* Make distcheck"
make -s -j$(nproc) distcheck >/dev/null
echo "* Make dist"
make -s -j$(nproc) dist-gzip >/dev/null
fi
app_name=$(grep "^PACKAGE_NAME='" configure|cut -d "'" -f2)
app_ver=$(grep "^PACKAGE_VERSION='" configure|cut -d "'" -f2)
if test -z $app_name || test -z $app_ver; then
echo "Didn't find ./configure, please bootstrap first"
exit 1
fi
projectdir=${app_name}-${app_ver}
tarball=${projectdir}.tar.gz
machines=""
# OpenCSW Solaris build farm"
#machines="$machines login.opencsw.org"
# PPC64 CentOS 7.4
#machines="$machines gcc110.fsffrance.org"
# AMD64 NetBSD 5.1
machines="$machines gcc70.fsffrance.org"
for machine in $machines; do
ssh rockdaboot@${machine} "rm -rf ${app_name}-*"
scp $tarball rockdaboot@${machine}:
scp -p ci-test.d/${machine}.sh rockdaboot@${machine}:build.sh
ssh rockdaboot@${machine} "bash --login -c \"tar xfz $tarball && bash ./build.sh && rm -rf $projectdir\""
done