Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
inkhey committed Mar 19, 2019
1 parent e47bd41 commit ba35791
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .coveragerc
@@ -1,6 +1,6 @@
[report]
omit =
frontend/*
backend/tracim_backend/tests/*
*/python?.?/*
*/site-packages/nose/*
frontend/*
backend/tracim_backend/tests/*
*/python?.?/*
*/site-packages/nose/*
13 changes: 10 additions & 3 deletions .travis.yml
Expand Up @@ -34,18 +34,27 @@ jobs:
name : Quick Unit-Test for Backend
env:
- DB=sqlite; TRACIM_DB_FILENAME=tracim_test.sqlite;
- COVERALLS_FLAG_NAME="unittest_backend_coverage"
python:
- "3.5"
- "3.6"
- "3.7"
script:
- pytest tracim_backend --ignore "tracim_backend/tests/functional" --ignore "tracim_backend/tests/commands"
- pytest --cov tracim_backend --ignore "tracim_backend/tests/functional" --ignore "tracim_backend/tests/commands"
after_success:
- cd ..
- coveralls --base_dir "./backend"
- stage: backend-sqlite
name: Test Backend with sqlite
env:
- DB=sqlite; TRACIM_DB_FILENAME=tracim_test.sqlite;
- COVERALLS_FLAG_NAME="all_backend_coverage"
script:
- pytest --cov tracim_backend
after_success:
- cd ..
- coveralls --base_dir "./backend"

- stage: backend-postgresql
name: Test Backend with postgresql
env:
Expand Down Expand Up @@ -137,5 +146,3 @@ before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then sed -i \"s/\(basic_setup.sqlalchemy_url *= *\).*/\1mysql+pymysql:\/\/root@localhost\/tracim_test/\" ${TRACIM_BACKEND_TEST_CONFIG_FILE}; fi"
# sqlite : do nothing, default config is sqlite based.
- sh -c "if [ '$DB' = 'sqlite' ]; then sed -i \"s/\(basic_setup.sqlalchemy_url *= *\).*/\1sqlite:\/\/\/${TRACIM_DB_FILENAME}/\" ${TRACIM_BACKEND_TEST_CONFIG_FILE}; fi"
after_success:
- coveralls

0 comments on commit ba35791

Please sign in to comment.