6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-06 07:30:40 +00:00

Fix CI unit tests on Mac OS

For some reason, the "nosetests" binary is not available on Mac OS in
Travis-ci. This is what we get when we try to install nose:

Requirement already satisfied: nose==1.3.7 in
/usr/local/Cellar/numpy/1.14.5/libexec/nose/lib/python3.6/site-packages
(from -r requirements/dev.txt (line 25)) (1.3.7)
This commit is contained in:
Régis Behmo 2019-03-24 12:13:17 -07:00
parent 7324d71d2c
commit ca8eda839d

View File

@ -7,7 +7,7 @@ compile-requirements: ## Compile requirements files
pip-compile -o requirements/dev.txt requirements/dev.in
pip-compile -o requirements/docs.txt requirements/docs.in
test:
test: ## Run unit tests
nosetests --nocapture tests/
###### Deployment
@ -38,10 +38,13 @@ ci-info: ## Print info about environment
python3 --version
pip3 --version
ci-test: ## Run unit tests but without nosetests, which is not available on Mac OS in travis-ci
python3 -m unittest discover tests
ci-bundle: ## Create bundle and run basic tests
pip3 install -U setuptools
pip3 install -r requirements/dev.txt
$(MAKE) test
$(MAKE) ci-test
$(MAKE) bundle
mkdir -p releases/
cp ./dist/tutor ./releases/tutor-$$(uname -s)_$$(uname -m)