pandorafms/.travis.yml

34 lines
891 B
YAML
Raw Permalink Normal View History

2016-05-19 16:27:41 +02:00
sudo: required
language: python
python:
- 2.7
2016-05-24 13:36:15 +02:00
env:
global:
- secure: "MEfyEpYEBkPmgPYX3CDKhaoiOltH5lDcUOYZ/19Yflg6ee20IBZOywCmrKH7VouKlOHUrGTUQqHBou0npm93qBju3MrPCE2R62PiDV2EHCGl3AFpLkgt0m1/DceWCWKlL+gI8uvnEFzVUuaPm6cEcRn1ikzg5b084bTxJ2B1Bvs="
- SAUCE_USERNAME="artica_pandorafms"
2016-05-24 13:36:15 +02:00
addons:
firefox: "latest"
2016-05-24 13:36:15 +02:00
sauce_connect: true
2016-05-19 16:27:41 +02:00
services:
- docker
before_install:
- sudo apt-get install xvfb
install:
2016-05-24 13:36:15 +02:00
- pip install selenium PyVirtualDisplay sauceclient
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