-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
47 lines (38 loc) · 1.32 KB
/
.travis.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
# Travis CI
language: php
dist: trusty
sudo: false
php:
- 7.2
before_script:
- cd /home/travis/build/
- echo | pecl install channel://pecl.php.net/yaml-2.0.2
- git clone https://github.com/krakjoe/pthreads.git
- cd pthreads
- git checkout 6c6b15138c923b69cfa46ee05fc2dd45da587287
- phpize
- ./configure
- make
- make install
- cd ..
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mkdir PocketMine-MP
- cd PocketMine-MP
- wget -o PocketMine-MP.phar | curl -s https://api.github.com/repos/pmmp/PocketMine-MP/releases/latest | grep browser_download_url | cut -d '"' -f 4
- ls
- mkdir -p plugins/BlockSniper
- cd plugins/
- wget -o DevTools.phar https://poggit.pmmp.io/r/22356/PocketMine-DevTools.phar
- cd /home/travis/build/
- cp -rf BlockHorizons/BlockSniper/src PocketMine-MP/plugins/BlockSniper
- cp -rf BlockHorizons/BlockSniper/resources PocketMine-MP/plugins/BlockSniper
- cp -rf BlockHorizons/BlockSniper/plugin.yml PocketMine-MP/plugins/BlockSniper
- cp -rf BlockHorizons/BlockSniper/LICENSE PocketMine-MP/plugins/BlockSniper
- cp -rf BlockHorizons/BlockSniper/travis.php travis.php
- cp -rf BlockHorizons/BlockSniper/tests PocketMine-MP/plugins/
script:
- php travis.php
notifications:
email:
on_failure: never
on_success: never