test.sh update
test.sh update test.sh update test.sh update test.sh update test.sh update test.sh update
This commit is contained in:
parent
91d04b2170
commit
e82dcad394
15
.travis.yml
15
.travis.yml
@ -1,5 +1,15 @@
|
|||||||
|
language: node_js
|
||||||
|
node_js: '9'
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
@ -17,11 +27,16 @@ before_script:
|
|||||||
- export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
|
- export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
|
||||||
- export APP_SETTINGS=mpwo_api.config.TestingConfig
|
- export APP_SETTINGS=mpwo_api.config.TestingConfig
|
||||||
- export REACT_APP_USERS_SERVICE_URL=http://localhost:3000/api/
|
- export REACT_APP_USERS_SERVICE_URL=http://localhost:3000/api/
|
||||||
|
- export DISPLAY=:99.0
|
||||||
|
- export NODE_ENV=development
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
|
- sleep 3
|
||||||
- docker-compose -f docker-compose-ci.yml up --build -d
|
- docker-compose -f docker-compose-ci.yml up --build -d
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- psql -c 'create database mpwo_test;' -U postgres
|
- psql -c 'create database mpwo_test;' -U postgres
|
||||||
- docker-compose -f docker-compose-ci.yml run api flask init_db
|
- docker-compose -f docker-compose-ci.yml run api flask init_db
|
||||||
|
- echo $NODE_ENV
|
||||||
- sh test.sh
|
- sh test.sh
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
3
test.sh
3
test.sh
@ -11,6 +11,9 @@ inspect() {
|
|||||||
docker-compose -f docker-compose-ci.yml run api flask test
|
docker-compose -f docker-compose-ci.yml run api flask test
|
||||||
inspect $? api
|
inspect $? api
|
||||||
|
|
||||||
|
testcafe chrome mpwo_client/e2e
|
||||||
|
inspect $? e2e
|
||||||
|
|
||||||
if [ -n "${fails}" ];
|
if [ -n "${fails}" ];
|
||||||
then
|
then
|
||||||
echo "Tests failed: ${fails}"
|
echo "Tests failed: ${fails}"
|
||||||
|
Loading…
Reference in New Issue
Block a user