1
0
mirror of https://github.com/rancher/os.git synced 2025-08-14 13:03:22 +00:00

Fix Drone CI

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-07-10 15:45:31 +10:00
parent cbe24ca06b
commit 402af04b44
4 changed files with 27 additions and 17 deletions

View File

@ -176,14 +176,14 @@ func ApplyNetworkConfigs(netCfg *NetworkConfig, userSetHostname, userSetDNS bool
//apply network config
for _, link := range links {
applyOuter(link, netCfg, wg, userSetHostname, userSetDNS)
applyOuter(link, netCfg, &wg, userSetHostname, userSetDNS)
}
wg.Wait()
return err
}
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg sync.WaitGroup, userSetHostname, userSetDNS bool) {
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg *sync.WaitGroup, userSetHostname, userSetDNS bool) {
log.Debugf("applyOuter(%V, %v)", userSetHostname, userSetDNS)
match, ok := findMatch(link, netCfg)
if !ok {

View File

@ -9,10 +9,12 @@ echo TEST
./scripts/test
echo VALIDATE
./scripts/validate
echo PREPARE
./scripts/prepare
echo PACKAGE
./scripts/package
echo INTEGRATION-TEST
./scripts/integration-test
# Drone servers kernel too old, and the integration tests often time out
#echo PREPARE
#./scripts/prepare
#echo PACKAGE
#./scripts/package
#echo INTEGRATION-TEST
#./scripts/integration-test

View File

@ -9,6 +9,14 @@ export INTEGRATION_TESTS=0
./scripts/ci
# from scripts/ci
echo PREPARE
./scripts/prepare
echo PACKAGE
./scripts/package
echo INTEGRATION-TEST
./scripts/integration-test
# make generated changelog
lastrelease=$(hub release | grep -v rc | head -n1 | tr -d ' \r\n')
git log --format="%s: %b" ${lastrelease}..${VERSION} | grep "Merge pull" | sed 's/.*\(#.*\) from .*:\(.*\)/* \1: \2/g' > dist/artifacts/changelog.txt