-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathwercker-box.yml
More file actions
45 lines (41 loc) · 1.04 KB
/
Copy pathwercker-box.yml
File metadata and controls
45 lines (41 loc) · 1.04 KB
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
name: php
version: 0.0.6
inherits: wercker/ubuntu12.04-webessentials@0.0.3
type : main
platform : ubuntu@12.04
description : php
keywords:
- php
packages :
- php@5.4
script : |
sudo apt-get update
sudo chef-solo -c $WERCKER_SOURCE_DIR/solo.rb -j $WERCKER_SOURCE_DIR/solo.json -l debug
sudo add-apt-repository ppa:ondrej/php5 -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install php5-sqlite
sudo apt-get install php5-mysql
cd
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
mkdir -p .composer
sudo chown -R ubuntu .composer
mkdir phpunit
cd phpunit
echo '{ "require": { "phpunit/phpunit": "*" }, "config": { "bin-dir": "/usr/local/bin/" }}' > composer.json
sudo composer install
cd
wget http://xdebug.org/files/xdebug-2.2.3.tgz
tar xfz xdebug-2.2.3.tgz
cd xdebug-2.2.3
phpize
./configure --enable-xdebug
make
box-detect:
priority : 1200
version :
detect:
- files:
- composer.json