mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-07 16:04:02 +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:
parent
7324d71d2c
commit
ca8eda839d
7
Makefile
7
Makefile
@ -7,7 +7,7 @@ compile-requirements: ## Compile requirements files
|
|||||||
pip-compile -o requirements/dev.txt requirements/dev.in
|
pip-compile -o requirements/dev.txt requirements/dev.in
|
||||||
pip-compile -o requirements/docs.txt requirements/docs.in
|
pip-compile -o requirements/docs.txt requirements/docs.in
|
||||||
|
|
||||||
test:
|
test: ## Run unit tests
|
||||||
nosetests --nocapture tests/
|
nosetests --nocapture tests/
|
||||||
|
|
||||||
###### Deployment
|
###### Deployment
|
||||||
@ -38,10 +38,13 @@ ci-info: ## Print info about environment
|
|||||||
python3 --version
|
python3 --version
|
||||||
pip3 --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
|
ci-bundle: ## Create bundle and run basic tests
|
||||||
pip3 install -U setuptools
|
pip3 install -U setuptools
|
||||||
pip3 install -r requirements/dev.txt
|
pip3 install -r requirements/dev.txt
|
||||||
$(MAKE) test
|
$(MAKE) ci-test
|
||||||
$(MAKE) bundle
|
$(MAKE) bundle
|
||||||
mkdir -p releases/
|
mkdir -p releases/
|
||||||
cp ./dist/tutor ./releases/tutor-$$(uname -s)_$$(uname -m)
|
cp ./dist/tutor ./releases/tutor-$$(uname -s)_$$(uname -m)
|
||||||
|
Loading…
Reference in New Issue
Block a user