mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 18:10:11 +00:00
17d223b4c1
This pull adds the base for testing Weblinks component with an Firefox automated browser via Selenium and Codeception Framework. See it in action in the following video: https://www.youtube.com/watch?v=gpsZVZCsawg This pull will launch the tests in Travis, however you can run the tests in your local machine too. Find the instructions at: README.md
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
language: php
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
before_script:
|
|
- sudo apt-get update -qq
|
|
# Install Apache
|
|
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl php5-gd > /dev/null
|
|
- sudo /etc/init.d/apache2 stop
|
|
- sudo sed -i -e "s,APACHE_RUN_USER=www-data,APACHE_RUN_USER=$USER,g" /etc/apache2/envvars
|
|
- sudo sed -i -e "s,APACHE_RUN_GROUP=www-data,APACHE_RUN_GROUP=$USER,g" /etc/apache2/envvars
|
|
- sudo chown -R $USER /var/lock/apache2
|
|
- sudo chown -R $USER:$USER /var/www
|
|
- ln -s $TRAVIS_BUILD_DIR/tests/ /var/www/tests
|
|
- sudo sed -i -e "s,AllowOverride[ ]None,AllowOverride All,g" /etc/apache2/sites-available/default
|
|
- sudo /etc/init.d/apache2 start
|
|
# Xvfb
|
|
- "export DISPLAY=:99.0"
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
- sleep 3 # give xvfb some time to start
|
|
# Fluxbox
|
|
- sudo apt-get install fluxbox -y --force-yes
|
|
- fluxbox &
|
|
- sleep 3 # give fluxbox some time to start
|
|
- composer update
|
|
|
|
script:
|
|
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
|
|
- php vendor/bin/robo test:acceptance
|