Run the unit tests in CI
This commit is contained in:
+2
-2
@@ -8,10 +8,10 @@ matrix:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
pip install .
|
pip install -r requirements-dev.txt
|
||||||
python ./bin/run_tests.py
|
python ./bin/run_tests.py
|
||||||
else
|
else
|
||||||
# linux test requires root to clean up the wheelhouse (docker runs as root)
|
# linux test requires root to clean up the wheelhouse (docker runs as root)
|
||||||
sudo pip install .
|
sudo pip install -r requirements-dev.txt
|
||||||
sudo python ./bin/run_tests.py
|
sudo python ./bin/run_tests.py
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
build_script:
|
build_script:
|
||||||
- pip install .
|
- pip install -r requirements-dev.txt
|
||||||
- python ./bin/run_tests.py
|
- python ./bin/run_tests.py
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ from glob import glob
|
|||||||
# move cwd to the project root
|
# move cwd to the project root
|
||||||
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
|
### run the unit tests
|
||||||
|
|
||||||
|
subprocess.check_call(['python', '-m', 'pytest', 'unit_test'])
|
||||||
|
|
||||||
|
### run the integration tests
|
||||||
|
|
||||||
test_projects = glob('test/??_*')
|
test_projects = glob('test/??_*')
|
||||||
|
|
||||||
if len(test_projects) == 0:
|
if len(test_projects) == 0:
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-e .
|
||||||
|
pytest
|
||||||
Reference in New Issue
Block a user