Skip to content

Instantly share code, notes, and snippets.

@zdenekdrahos

zdenekdrahos/qa Secret

Created December 4, 2016 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdenekdrahos/6b5ce27e5a7326a6cc18277150087d9c to your computer and use it in GitHub Desktop.
Save zdenekdrahos/6b5ce27e5a7326a6cc18277150087d9c to your computer and use it in GitHub Desktop.
Build phpqa history
#!/bin/sh
buildDir="CI/build"
timestamp=$(date +"%Y-%m-%d-%H%M%S")
dir="$buildDir/$timestamp"
build() {
analyze
load_latest
}
analyze() {
bin/qa $dir
}
load_latest() {
echo "Add latest build to $buildDir/latest"
latest="$buildDir/latest"
unlink $latest
ln -s $timestamp $latest
}
build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment