forked from pear2/Net_RouterOS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (52 loc) · 1.35 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
48
49
50
51
52
#
# Travis-CI is currently disabled due to difficulties with Qemu,
# combined with the inability to use VirtualBox instead.
#
language: php
php:
- 5.3.3
- 5.3
- 5.4.0
- 5.4
- 5.5.0
- 5.5
- 5.6.0
# There are some known issues with streaming in the latest 5.6 versions.
#- 5.6
env:
- ROS_VERSION=6.29.1 ROS_HASH=b8f3c93d9f139ee0deba74088c3ceab9
addons:
hosts:
- 192.168.56.101 ros.example.com
- 192.168.56.2 invalid.ros.example.com
- 192.168.56.98 silent.ros.example.com
before_install:
- sudo apt-get update
- sudo apt-get install unzip
- wget -O ~/packer.zip https://dl.bintray.com/mitchellh/packer/packer_0.7.5_linux_amd64.zip
install:
# Install Packer
- unzip ~/packer.zip -d ~/packer
- export PATH=$PATH:~/packer
# Install Apache
- sudo apt-get install apache2
# Install Qemu
- sudo apt-get install qemu
before_script:
# Setup VM
- cd tests/vm
- packer build -only=qemu -var "v=${ROS_VERSION}" -var "h=${ROS_HASH}" RouterOS.packer.json
- cd ../..
# Setup PHP dependencies
- composer self-update
- composer require pear2/net_transmitter:dev-develop
- composer install
# Configure Apache
- echo "Listen 8728" >> /etc/apache2/ports.conf
- echo "Listen 8729" >> /etc/apache2/ports.conf
script:
- sudo service apache2 restart
- cd tests
- vm/RouterOS.qemu.sh &
- sleep 20
- ../vendor/bin/phpunit