-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
70 lines (61 loc) · 2.6 KB
/
.drone.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
build:
image: ubuntu:$$UBUNTU_VERSION
commands:
# initialize
- printf "%s\n------------------------------\n---- I N I T I A L I Z E ----\n------------------------------%s\n%s\n"
- export TERM=xterm
- apt-get update
- apt-get -y install dialog
- apt-get -y install zip
- apt-get -y install unzip
- apt-get -y install wget
# php7
- printf "%s\n------------------------------\n----------- P H P -----------\n------------------------------%s\n%s\n"
- apt-get -y install curl php7.0-cli php7.0-dev git
- apt-get -y install php-xml
- apt-get -y install php-mysql
- apt-get -y install php-curl
# xdebug
- printf "%s\n------------------------------\n-------- X D E B U G --------\n------------------------------%s\n%s\n"
- wget http://xdebug.org/files/xdebug-2.4.0rc2.tgz
- tar -xzf xdebug-2.4.0rc2.tgz
- cd xdebug-2.4.0RC2/
- phpize
- ./configure --enable-xdebug
- make
- cp modules/xdebug.so /usr/lib/.
- touch /etc/php/7.0/cli/conf.d/20-xdebug.ini
- echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/cli/conf.d/20-xdebug.ini
- echo 'xdebug.remote_enable=1' >> /etc/php/7.0/cli/conf.d/20-xdebug.ini
- cd ../
# composer
- printf "%s\n------------------------------\n------ C O M P O S E R ------\n------------------------------%s\n%s\n"
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
- chmod +x coveralls.phar
- composer self-update
- composer clear-cache
- composer install
# phpunit
- printf "%s\n------------------------------\n------ P H P U N I T ------\n------------------------------%s\n%s\n"
- curl -LO --silent https://phar.phpunit.de/phpunit.phar
- chmod +x phpunit.phar
- mv phpunit.phar /usr/local/bin/phpunit
# versions
- printf "%s\n------------------------------\n------- V E R S I O N -------\n------------------------------%s\n%s\n"
- php -v
- git --version
- composer --version
- phpunit --version
# dependencies, tests.
- printf "%s\n------------------------------\n--------- S T A R T ---------\n------------------------------%s\n%s\n"
- mkdir -p build/logs
- git submodule update --init --recursive
- phpunit -c phpunit.xml
- ls build/logs
# coveralls
- printf "%s\n------------------------------\n----- C O V E R A L L S -----\n------------------------------%s\n%s\n"
- php coveralls.phar -v -x build/logs/clover.xml
matrix:
UBUNTU_VERSION:
- 16.04