aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/tests/smoke-rpm
blob: a97402a50610f09cab05fb0cfd32216b649a2924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e
set -x

git init .
git config user.email "you@example.com"
git config user.name "Doesnot Matter"
git add .
git commit -m"Smoketest" -a

gbp buildpackage-rpm --help

# Build an RPM of ourselfes if build-deps are available
if python3 -c "import setuptools"; then
  gbp buildpackage-rpm --git-packaging-dir=packaging/ \
                       -D'%__python3 /usr/bin/python3' \
                       -D'%__python /usr/bin/python3' \
                       -bb --nodeps
fi