Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
sudo: required
services:
- docker
language: python
python:
- "2.7"
- "3.4"
- "3.5"
before_install:
- tests/docker/nginx/build.sh
# command to install dependencies
install:
- pip install tox-travis
- pip install -e .
- chmod ugo+x demo.sh
# command to run tests
script: tox
script: ./demo.sh
12 changes: 12 additions & 0 deletions demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
echo
echo "--- Runing Nginx \"latests\" tests ----"
echo
export HTTPWOOKIEE_CONF=tests/docker/nginx/latest/config.ini
./httpwookiee.py -V

echo
echo "--- Runing Nginx \"stable\" tests ----"
echo
export HTTPWOOKIEE_CONF=tests/docker/nginx/stable/config.ini
./httpwookiee.py -V
2 changes: 2 additions & 0 deletions tests/docker/nginx/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
echo "******* copying static resources here (yep, Dockerfile hack...)"
cp -ar ../../../httpwookiee/static ./latest/
cp -ar ../../../httpwookiee/static ./stable/
Expand Down Expand Up @@ -28,3 +29,4 @@ echo "******* docker ps"
docker ps -a
# if you want to edit files in a running docker (for tests, do not forget to getyour copy back in conf dir)
#docker run -i -t --rm --volumes-from wrpnginx_latest --name wookieenginxfiles debian /bin/bash
cd -