summaryrefslogtreecommitdiff
path: root/buildscripts/build-on-greyhound.sh
blob: 93d6bd9b8cf2d55c56a872647f1e7c3720319931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# triggers a CI test on greyhound using leap local
# usage: ./build-on-greyhound.sh <branch>

branch=$1
ACCEPTED_BRANCHES='(develop|citest)'

if [[ ! $branch =~ $ACCEPTED_BRANCHES ]]
then
  echo "CI builds only possible for these branches: $ACCEPTED_BRANCHES  "
  exit 1
fi

. /etc/leap/rewire_${branch}.cfg
. /etc/leap/platform-test-common.cfg

cd "$PROVIDERDIR"

leap info
/usr/local/bin/platform_test/leap-platform-test -v -c /etc/leap/rewire_${branch}.cfg reset_deploy --all
/usr/local/bin/platform_test/leap-platform-test -v -c /etc/leap/rewire_${branch}.cfg test
leap local stop