-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwercker-box.yml
70 lines (58 loc) · 2.12 KB
/
wercker-box.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: php55
version: 0.0.16
inherits: wercker/[email protected]
type: main
platform: [email protected]
description: wercker box for php 5.5
keywords:
- php
- php5
packages:
- npm
- bower
- libicu-dev
- capifony
script: |
# Edit environment path
echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.bash_profile
# Install php
sudo add-apt-repository ppa:ondrej/php5 -y
sudo apt-get update -y
sudo apt-get install php5 php5-common php5-dev php-pear php5-curl php5-gd php5-cli php5-apcu php5-mcrypt php5-intl php5-xdebug libicu-dev php5-redis libsasl2-dev -y
# Configure PHP
sudo sed -i 's+;date.timezone =+date.timezone = Europe/Rome +g' /etc/php5/cli/php.ini
sudo sed -i 's/128M/8096M/' /etc/php5/cli/php.ini
sudo sed -i 's/disable_functions/;disable_functions/' /etc/php5/cli/php.ini
# Configure PEAR
pear config-set php_ini /etc/php5/cli/php.ini
pecl config-set php_ini /etc/php5/cli/php.ini
# Install PHP extensions
echo '\n' | sudo pecl install -f mongo-1.4.5
# Install composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
mkdir $WERCKER_CACHE_DIR/composer || echo "Composer cache directory exists"
composer config --global cache-dir $WERCKER_CACHE_DIR/composer
# Install PHPUnit
wget https://phar.phpunit.de/phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
sudo chmod +x /usr/local/bin/phpunit
# Install atoum
wget http://downloads.atoum.org/nightly/mageekguy.atoum.phar
chmod +x mageekguy.atoum.phar
sudo mv mageekguy.atoum.phar /usr/local/bin/atoum
sudo chmod +x /usr/local/bin/atoum
# Update node
echo '\n' | sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
# Install bower
sudo npm install -g bower
# Install capifony
sudo gem install capifony
# Install s3cmd
wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list
sudo apt-get update && sudo apt-get install s3cmd