Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devtools used by ant #41

Merged
merged 1 commit into from
May 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.provision :shell, inline: "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile", :privileged =>false
config.vm.provision :shell, path: "./scripts/bootstrap.sh", :args => shared_dir
config.vm.provision :shell, path: "./scripts/devtools.sh", :args => shared_dir
config.vm.provision :shell, path: "./scripts/fits.sh", :args => shared_dir
config.vm.provision :shell, path: "./scripts/fcrepo.sh", :args => shared_dir
config.vm.provision :shell, path: "./scripts/djatoka.sh", :args => shared_dir
Expand Down
49 changes: 49 additions & 0 deletions scripts/devtools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Sets up a developer environment

# Create a configuration script to help get a Git environment set up
sudo tee /usr/local/bin/git-config > /dev/null << GIT_CONFIG_EOF
#! /bin/bash

if [ "\$#" -eq 3 ]; then
NAME="\$1"
EMAIL="\$2"
PUSH="\$3"
elif [ "\$#" -eq 2 ]; then
NAME="\$1"
EMAIL="\$2"
PUSH="simple"
else
echo 'Usage: git-config "Your Name" "[email protected]" [PUSH_DEFAULT]'
exit 1
fi

git config --global user.name "\$NAME"
git config --global user.email "\$EMAIL"
git config --global push.default "\$PUSH"

GIT_CONFIG_EOF

chmod 755 /usr/local/bin/git-config

# Install tools used by Islandora Ant builds
wget -q https://phar.phpunit.de/phploc.phar
mv phploc.phar /usr/local/bin/phploc
chmod +x /usr/local/bin/phploc

wget -q https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
mv phpcs.phar /usr/local/bin/phpcs
chmod +x /usr/local/bin/phpcs

wget -q https://phar.phpunit.de/phpcpd.phar
mv phpcpd.phar /usr/local/bin/phpcpd
chmod +x /usr/local/bin/phpcpd

wget -q http://static.pdepend.org/php/latest/pdepend.phar
mv pdepend.phar /usr/local/bin/pdepend
chmod +x /usr/local/bin/pdepend

wget -q https://github.com/mayflower/PHP_CodeBrowser/releases/download/1.1.1/phpcb-1.1.1.phar
mv phpcb-1.1.1.phar /usr/local/bin/phpcb
chmod +x /usr/local/bin/phpcb

apt-get install -y doxygen