Instantly share code, notes, and snippets.

@zdenekdrahos /qa Secret
Created Dec 4, 2016

Embed
What would you like to do?
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