From ca8eda839dc30d3b1e4033ec10fa51d8e3cc591b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sun, 24 Mar 2019 12:13:17 -0700 Subject: [PATCH] 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) --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5d75050..cc22d0b 100644 --- a/Makefile +++ b/Makefile @@ -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)