mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-24 17:19:52 +03:00
Travis: create package with CMake
This commit is contained in:
parent
2d1d382678
commit
8a064164c9
@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
while IFS=$'\n\r' read -r line || [[ -n "$line" ]]; do
|
||||
echo "Text read from file: $line"
|
||||
case $line in
|
||||
BUILD_NUMBER\ *)
|
||||
BUILD_NUMBER=${line#BUILD_NUMBER }
|
||||
;;
|
||||
VERSION\ *)
|
||||
VERSION=${line#VERSION }
|
||||
;;
|
||||
BUILD_NAME\ *)
|
||||
BUILD_NAME=${line#BUILD_NAME }
|
||||
;;
|
||||
|
||||
esac
|
||||
done < "src/CurrentBuild.txt"
|
||||
|
||||
VERSION=${VERSION:0:1}.${VERSION:1} # Add a colon after the first character. ("501" => "5.01")
|
||||
|
||||
CHANGELOG_VERSION="(0:$VERSION.$BUILD_NUMBER) $BUILD_NAME"
|
||||
|
||||
IFS=$'\n\r' read -r line < "debian/changelog"
|
||||
if [[ $line == *$CNANGELOG_VERSION* ]]; then
|
||||
echo "debian/changelog matches src/CurrentBuild.txt"
|
||||
else
|
||||
echo "debian/changelog does not match src/CurrentBuild.txt"
|
||||
exit 1
|
||||
fi
|
@ -20,12 +20,6 @@ matrix:
|
||||
- env: OPENSSL_VERSION="1.1.0f"
|
||||
os: linux
|
||||
compiler: clang
|
||||
- env: DESCRIPTION="check debian package version"
|
||||
os: linux
|
||||
before_install:
|
||||
- true
|
||||
script:
|
||||
- .ci/check-debian-package-version.sh
|
||||
- os: osx
|
||||
compiler: clang
|
||||
cache:
|
||||
@ -58,4 +52,4 @@ script:
|
||||
- ./configure
|
||||
- make -C tmp
|
||||
- ldd bin/vpnserver/vpnserver
|
||||
- if [ "${BUILD_DEB}" = "1" ]; then debuild -i -us -uc -b; fi
|
||||
- if [ "${BUILD_DEB}" = "1" ]; then make package -C tmp; fi
|
||||
|
Loading…
Reference in New Issue
Block a user