summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins.sh
blob: 3ab942ac5ccc92df7221ae460e64ee7329dcbdec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e -x

cd ~/osmo-ci || (cd ~/ && git clone git://git.osmocom.org/osmo-ci && cd ~/osmo-ci)
git rev-parse HEAD
git status

git fetch && git checkout -f -B master origin/master

git rev-parse HEAD
git status

if [ `uname` = "Linux" ] && [ "x${OSMO_CI_NO_DOCKER}" != "x1" ]; then
	scripts/osmo-ci-docker-rebuild.sh
fi