Skip to content

Commit 3146806

Browse files
committed
docs and travis only unittest
1 parent cf20a42 commit 3146806

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ install:
3939
script:
4040
- docker-compose up --build --detach firebase_deploy
4141
- docker-compose run mapswipe_workers python -m unittest discover --verbose --start-directory tests/unittests/
42-
- docker-compose run mapswipe_workers python -m unittest discover --verbose --start-directory tests/integration/
42+
#- docker-compose run mapswipe_workers python -m unittest discover --verbose --start-directory tests/integration/
4343
# - TODO: Run black and flake8
4444

4545
# before_deploy:

docs/source/index.rst

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ Welcome to MapSwipe Back-End's documentation!
1313

1414
readme_link
1515
overview
16+
contributing
1617

1718
.. toctree::
1819
:maxdepth: 2
1920
:caption: Using:
2021

2122
for_mapswipe_managers
22-
cli
23+
use_cases
24+
tile_size
2325
data
2426

2527

@@ -30,33 +32,15 @@ Welcome to MapSwipe Back-End's documentation!
3032
deployment_overview
3133
configuration
3234
installation
33-
tutorials
34-
updating
35-
testing
35+
cli
36+
dev_setup
37+
testing_and_travis
3638
debugging
3739
backup
3840

3941

40-
.. toctree::
41-
:maxdepth: 2
42-
:caption: Project Types and Data Model:
43-
44-
project_type
45-
project_type-buildArea
46-
project_type-footprint
47-
project_type-changeDetection
4842

4943

50-
.. toctree::
51-
:maxdepth: 2
52-
:caption: Miscellaneous:
53-
54-
dev_setup
55-
contributing
56-
diagrams
57-
use_cases
58-
tile_size
59-
6044

6145
Indices and tables
6246
==================

docs/source/testing_and_travis.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Testing and Travis
2+
3+
## Tests
4+
* run tests locally during development
5+
6+
```
7+
python -m unittest discover --verbose --start-directory mapswipe_workers/tests/unittests/
8+
python -m unittest discover --verbose --start-directory mapswipe_workers/tests/integration/
9+
```
10+
11+
12+
## Travis
13+
* set environment variables in travis
14+
* travis then sets up the docker containers
15+
* test are run inside the mapswipe_workers docker container
16+
17+
```
18+
docker-compose run mapswipe_workers python -m unittest discover --verbose --start-directory tests/unittests/
19+
docker-compose run mapswipe_workers python -m unittest discover --verbose --start-directory tests/integration/
20+
```

0 commit comments

Comments
 (0)