Page MenuHomePhabricator
Paste P502

patch-integration-slave-precise.sh
ActivePublic

Authored by Krinkle on Apr 9 2015, 6:36 PM.
Referenced Files
F3012275: patch-integration-slave-precise.sh
Nov 25 2015, 5:12 AM
F3012272: patch-integration-slave-precise.sh
Nov 25 2015, 5:12 AM
F153822: patch-integration-slave-precise.sh
Apr 23 2015, 3:47 AM
F110989: patch-integration-slave-precise.sh
Apr 10 2015, 1:23 PM
F110988: patch-integration-slave-precise.sh
Apr 10 2015, 1:23 PM
F110644: patch-integration-slave-precise.sh
Apr 9 2015, 6:36 PM
Subscribers
None
#!/bin/bash -eu
#
# Revision: 2015-11-25
#
# Additional provisioning for integration slaves running Ubuntu Precise.
# This assumes "role::ci::slave::labs" is already enabled and applied.
#
# Author: Timo Tijhof
#
# This is free and unencumbered software released into the public domain.
err() {
echo "Error: $1"
exit 1
}
# Assert: Node version
node_version=$(node --version)
if [[ "$node_version" != "v0.8.2" ]]; then
err "Unexpected Node $node_version"
fi
# Patch: Upgrade outdated npm that ships with Ubuntu
npm_version=$(npm --version)
if [[ "$npm_version" != "2.14.12" ]]; then
sudo /usr/bin/npm install -g npm@2.14.12 --ca=null
npm_version=$(npm --version)
if [[ "$npm_version" != "2.14.12" ]]; then
err "Failed to upgrade npm"
fi
fi
# Patch: Ensure grunt-cli is installed
if which grunt; then
grunt_version=$(grunt --version)
else
grunt_version="-"
fi
if [[ "$grunt_version" != "grunt-cli v0.1.13" ]]; then
sudo npm install -g grunt-cli@0.1.13
grunt_version=$(grunt --version)
if [[ "$grunt_version" != "grunt-cli v0.1.13" ]]; then
err "Unexpected Grunt $grunt_version"
fi
fi
echo "Done!"

Event Timeline

Krinkle changed the title of this paste from untitled to patch-integration-slave-precise.sh.
Krinkle updated the paste's language from autodetect to autodetect.
Krinkle edited the content of this paste. (Show Details)
Krinkle edited the content of this paste. (Show Details)