path: root/scripts/
AgeCommit message (Collapse)AuthorFilesLines
2018-04-02scripts: Allow building against tagsPau Espin Pedrol1-1/+6
In case we provide a tag, origin/$tag doesn't resolve correctly, we must use $tag. Same happens probably if we want to build against a specific commit hash. Change-Id: Ica50080c8b3e20686fe6f47a2b61718ef4a66d95 Force fetching git tagsPau Espin Pedrol1-0/+1
It was recently spotted, in a osmo-msc jenkins build, that an updated dependency (new commits to be fetched) contained a new tag which was not fetched with the commit. It resulted in the Makefile generating an old .version file, which ended up generating a library version in the .pc which later in the build make the configure script fail while checking at the dependencies. As far as I could understand after reading several discussion threads, it seems git fetch doesn't necessarily fetch and store locally all new tags found in the remote, and we need to explicitly add the --tags parameter to be sure all of them are downloaded. This patch adds a new fetch line instead of patching the one already present because it seems in old versions of git the --tags parameter had a different behaviour, in which only tags and not branches are fetched. This way is ensured that we get both correct regardless of git version. Change-Id: I4bfe4846959c70e435d6792a755a6f2a6f0a932c fix: add 'origin/' to branch, to properly updateNeels Hofmeyr1-1/+1
If I have a git clone that once did 'checkout [-f] branch', and if then origin/branch gets updates, doing another 'checkout -f branch' only goes back to the local tracking-branch of origin/branch. We never pull in changes from origin/branch anymore as soon as a local branch exists. Always prepend 'origin/', so that 'checkout -f' goes into detached-HEAD state onto the newest fetched revision. Change-Id: Ia715a100b5beaf7e612c2c64cdad8819aa00c8bd make sure to not clean all deps when inside a dep dirNeels Hofmeyr1-2/+2
Make sure passes no $deps in to In most builds, $deps is a relative path, and when within a dir that contains no such subir, calling has no effect. However, in some, $deps is passed in as absolute path, so when within a deps/... subdir in, the script would still find the abspath and clean out all deps subdirs; for example in osmo-bts. Change-Id: I431d20aedefc708645a1f1862334cffaef20b928
2017-10-27scripts: use 'git checkout -f' instead of 'reset --hard'Neels Hofmeyr1-1/+1
'checkout -f' more accurately does what is intended. 'reset' changes the current branch to some hash, 'checkout -f' force-checkouts another branch. Change-Id: Ic6279ebaf8160bceb3fa2ab40eff0b888ecd5009
2017-10-27osmo-build-dep: offload branch checkout to osmo-deps.shNeels Hofmeyr1-4/+6
In, add second arg $branch, and also name the first one (i.e. $project). Use the passed branch or 'origin/master' by default. In, it's not necessary to do a second 'git rev-parse HEAD', already does it. Change-Id: I598c41a12352acea6e49a321ad2f665f6ea07a44
2017-10-27add, use in osmo-deps.shNeels Hofmeyr1-0/+6
So far, each jenkins job does its own cleanup, more or less well. Also, jenkins git config offers the 'Clean before checkout' option, which seems to fail when there are non-writable leftovers from a failed 'make distcheck'. Furthermore, our jenkins build slaves have unused compiled binaries piling up by the gigabytes: each matrix build x each parallel build and each compiled dependency therein builds .o, .a, .so and executables plus installs them to a local prefix, and just leaves them sitting around to rot until the job runs again. Instead, we want to clean them out when building is done. All of this calls for a unified cleanup script that knows how to clean a workspace properly, to run once before and once after each jenkins build. Here it is. Use that function in instead of duplicating cleanup steps. Change-Id: I2409b2928b4d7ebbd6c005097d4ad7337307dd93
2016-12-11scripts/ show complete git hash of cloned HEAD revisionNeels Hofmeyr1-0/+1
Change-Id: I0e1a65d864b075bd1dbfb579d308631f745d6937
2016-12-11scripts/ set -ex to log actions and exit on errorNeels Hofmeyr1-0/+1
Change-Id: Ic61a51bd639e44cbb19ec67a90ab04825e512314
2016-04-24Initial commit for a CI repositoryHolger Hans Peter Freyther1-0/+10