Commit 1ce90ed3 authored by Ryan Herbert's avatar Ryan Herbert

server functional tests donc launch in Makefile

Since in gitlab-ci we are launching the unit tests on the host, and the
database initialisation needs to be launched on the docker container, we
want to separate the two.
parent 4d5c4668
......@@ -245,6 +245,7 @@ test_server_functional:
- docker build --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/server:test" docker/vidjil-server
- docker build --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/client:test" docker/vidjil-client
- cd docker && docker-compose up -d && cd ..
- docker exec docker_uwsgi_1 python /usr/share/vidjil/server/web2py/ -S vidjil -M -R /usr/share/vidjil/server/web2py/applications/vidjil/tests/functional/
- source /etc/profile.d/
- rvm use 2.1.1
- HEADLESS=1 make functional_server || (cd docker && docker-compose stop; false)
all: functional
python ../../../../ -S vidjil -M -R ./applications/vidjil/tests/functional/ && ./launch_functional_tests test_*.rb
./launch_functional_tests test_*.rb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment