mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 18:19:53 +03:00
Merge pull request #834 from chipitsine/master
Merge PR #834: setup azure pipelines
This commit is contained in:
commit
3c02cb32b2
@ -15,6 +15,7 @@ skip_commits:
|
||||
files:
|
||||
- .travis.yml
|
||||
- .gitlab-ci.yml
|
||||
- azure-pipelines.yml
|
||||
|
||||
init:
|
||||
- ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
||||
|
@ -5,6 +5,7 @@
|
||||
changes:
|
||||
- .appveyor.yml
|
||||
- .travis.yml
|
||||
- azure-pipelines.yml
|
||||
before_script:
|
||||
- REPOSITORY="$PWD" && cd ..
|
||||
- apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev git file
|
||||
|
16
azure-pipelines.yml
Normal file
16
azure-pipelines.yml
Normal file
@ -0,0 +1,16 @@
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
|
||||
variables:
|
||||
CPACK_GENERATOR: DEB
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
submodules: recursive
|
||||
|
||||
- script: |
|
||||
sudo apt -y install cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev
|
||||
./configure
|
||||
make package -C tmp -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
||||
.ci/appveyor-deb-install-test.sh
|
||||
displayName: 'Ubuntu 16.04'
|
5
configure
vendored
5
configure
vendored
@ -35,7 +35,10 @@ if [ -z ${OPENSSL_ROOT_DIR} ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -x "$(command -v rpm)" ]; then
|
||||
if [ ! -z ${CPACK_GENERATOR+x} ]; then
|
||||
echo "CPACK_GENERATOR is set, CPack will generate ${CPACK_GENERATOR} packages."
|
||||
CMAKE_FLAGS="-DCPACK_GENERATOR=${CPACK_GENERATOR} ${CMAKE_FLAGS}"
|
||||
elif [ -x "$(command -v rpm)" ]; then
|
||||
echo "'rpm' executable found, CPack will generate RPM packages."
|
||||
CMAKE_FLAGS="-DCPACK_GENERATOR='RPM' ${CMAKE_FLAGS}"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user