2016-05-19 16:27:41 +02:00
|
|
|
sudo: required
|
|
|
|
|
2016-05-24 00:48:35 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 2.7
|
|
|
|
|
2016-05-24 13:36:15 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- secure: "MEfyEpYEBkPmgPYX3CDKhaoiOltH5lDcUOYZ/19Yflg6ee20IBZOywCmrKH7VouKlOHUrGTUQqHBou0npm93qBju3MrPCE2R62PiDV2EHCGl3AFpLkgt0m1/DceWCWKlL+gI8uvnEFzVUuaPm6cEcRn1ikzg5b084bTxJ2B1Bvs="
|
2016-05-24 13:40:13 +02:00
|
|
|
- SAUCE_USERNAME="artica_pandorafms"
|
2016-05-24 13:36:15 +02:00
|
|
|
|
2016-05-24 11:49:30 +02:00
|
|
|
addons:
|
|
|
|
firefox: "latest"
|
2016-05-24 13:36:15 +02:00
|
|
|
sauce_connect: true
|
2016-05-24 11:49:30 +02:00
|
|
|
|
2016-05-19 16:27:41 +02:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-05-24 11:36:40 +02:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get install xvfb
|
|
|
|
|
2016-05-24 10:28:43 +02:00
|
|
|
install:
|
2016-08-09 13:32:02 +02:00
|
|
|
- pip install selenium PyVirtualDisplay sauceclient testtools
|
2016-05-24 11:49:30 +02:00
|
|
|
|
2016-05-24 13:36:15 +02:00
|
|
|
#before_script:
|
|
|
|
# - "export DISPLAY=:99.0"
|
|
|
|
# - "sh -e /etc/init.d/xvfb start"
|
|
|
|
# - sleep 4 # give xvfb some time to start
|
2016-05-24 17:09:29 +02:00
|
|
|
|
2016-05-20 12:06:26 +02:00
|
|
|
script:
|
2016-05-24 17:33:17 +02:00
|
|
|
- docker run --name pandorafms -h pandorafms -dt -v "$TRAVIS_BUILD_DIR:/tmp/pandorafms" -p 127.0.0.1:80:80 pandorafms/pandorafms-base tail -f /var/log/messages
|
2016-05-24 17:09:29 +02:00
|
|
|
- docker exec -t pandorafms /tmp/pandorafms/tests/test.sh
|
|
|
|
- python $TRAVIS_BUILD_DIR/tests/run_console_tests.py
|