Page MenuHomePhabricator
Paste P466

patch-integration-slave-trusty.sh
ActivePublic

Authored by Krinkle on Apr 1 2015, 8:22 AM.
Referenced Files
F3012276: patch-integration-slave-trusty.sh
Nov 25 2015, 5:13 AM
F153821: patch-integration-slave-trusty.sh
Apr 23 2015, 3:47 AM
F110645: patch-integration-slave-trusty.sh
Apr 9 2015, 6:37 PM
F110641: patch-integration-slave-trusty.sh
Apr 9 2015, 6:33 PM
F110401: patch-integration-slave-trusty.sh
Apr 9 2015, 9:39 AM
F110394: patch-integration-slave-trusty.sh
Apr 9 2015, 9:18 AM
F108760: patch-integration-slave-ubuntu1404-trusty.sh
Apr 3 2015, 11:16 PM
F108759: patch-integration-slave-ubuntu1404-trusty.sh
Apr 3 2015, 11:16 PM
Subscribers
None
#!/bin/bash -eu
#
# Revision: 2015-11-25
#
# Additional provisioning for integration slaves running Ubuntu Trusty.
# 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.10.25" ]]; 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
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-ubuntu1404-trusty.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)
Krinkle changed the title of this paste from patch-integration-slave-ubuntu1404-trusty.sh to patch-integration-slave-trusty.sh.