mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-15 07:00:52 +00:00
tests: use extensive coverage from make's test and system-test
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
APTLY_SRC_DIR="${TMP_DIR}/src/github.com/aptly-dev/aptly"
|
||||
|
||||
# apply patches
|
||||
dpkg-source --before-build .
|
||||
|
||||
# copy source to GOPATH-compatible dir
|
||||
mkdir -p $(dirname $APTLY_SRC_DIR)
|
||||
cp -a . $APTLY_SRC_DIR
|
||||
|
||||
# not in a git tree, so we need to generate the version ourselves
|
||||
dpkg-parsechangelog --show-field Version | perl -pe 's/\n//' > ${APTLY_SRC_DIR}/VERSION
|
||||
|
||||
# use only apt-supplied go libraries
|
||||
export GOPATH="${TMP_DIR}:/usr/share/gocode"
|
||||
export GO111MODULE=off
|
||||
Reference in New Issue
Block a user