mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-26 09:10:10 +00:00
ci: use correct repo and branch
fix tests to actually test the correct repository and branch
This commit is contained in:
parent
e5b9486c52
commit
9485852c2c
2 changed files with 37 additions and 9 deletions
16
ciscripts/test_install.sh
Normal file
16
ciscripts/test_install.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then
|
||||
echo "Pull Request, testing branch $TRAVIS_PULL_REQUEST_BRANCH on $TRAVIS_PULLREQUEST_SLUG"
|
||||
sudo ./auto_install/install.sh --giturl https://github.com/"${TRAVIS_PULL_REQUEST_SLUG}" \
|
||||
--gitbranch "${TRAVIS_PULL_REQUEST_BRANCH}" \
|
||||
--unattended ciscripts/ci_"${VPNPROTO}".conf
|
||||
else
|
||||
if [[ "$TRAVIS_BRANCH" == "test" ]]; then
|
||||
echo "Testing PiVPN Test branch"
|
||||
sudo TESTING= ./auto_install/install.sh --unattended ciscripts/ci_"${VPNPROTO}".conf
|
||||
else
|
||||
echo "Testing PiVPN Master branch"
|
||||
sudo ./autoinstall.sh --unattended ciscripts/ci_"${VPNPROTO}".conf
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue