forked from eymengunay/wercker-box-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker-box.yml
52 lines (40 loc) · 1.28 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
name: php55
version: 0.0.1
inherits: ruudk/[email protected]
type: main
platform: [email protected]
description: wercker box for php 5.5
keywords:
- php
- php55
- postgresql
- laravel
packages:
- composer
script: |
# Update
sudo apt-get update
# Install base packages
sudo apt-get install -y curl wget unzip ack-grep git
sudo apt-get install software-properties-common build-essential
sudo apt-get install apt-file && apt-file update
sudo apt-get update
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
# Edit environment path
echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.bash_profile
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-key update
sudo apt-get update
# Install PHP
sudo apt-get install --force-yes -y php5-cli php5-fpm php5-mysql php5-pgsql php5-sqlite php5-curl php5-gd php5-gmp php5-mcrypt php5-xdebug php5-memcached php5-imagick php5-intl
# Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo composer self-update
# sudo composer global require "phpunit/phpunit:4.0.*"
# PHP Unit
sudo wget https://phar.phpunit.de/phpunit.phar
sudo chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit