Browse Source

ref(workflow): Rename ci test make commands (#18329)

Rename the make commands used in CI, test-python and test-js, to test-python-ci and test-js-ci
to match standard Makefile naming convetions. Also create new test-python and test-js commands
for local testing.
Sarah Lohmeier 4 years ago
parent
commit
93030a6bca
1 changed files with 12 additions and 3 deletions
  1. 12 3
      Makefile

+ 12 - 3
Makefile

@@ -141,6 +141,11 @@ test-js-build: node-version-check
 
 test-js: node-version-check
 	@echo "--> Running JavaScript tests"
+	@$(YARN) run test
+	@echo ""
+
+test-js-ci: node-version-check
+	@echo "--> Running CI JavaScript tests"
 	@$(YARN) run test-ci
 	@echo ""
 
@@ -151,9 +156,13 @@ test-styleguide:
 	@echo ""
 
 test-python:
+	@echo "--> Running Python tests"
+	py.test tests/integration tests/sentry
+
+test-python-ci:
 	sentry init
 	make build-platform-assets
-	@echo "--> Running Python tests"
+	@echo "--> Running CI Python tests"
 ifndef TEST_GROUP
 	py.test tests/integration tests/sentry --cov . --cov-report="xml:.artifacts/python.coverage.xml" --junit-xml=".artifacts/python.junit.xml" || exit 1
 else
@@ -230,11 +239,11 @@ travis-test-lint-js: lint-js
 
 .PHONY: travis-test-postgres travis-test-acceptance travis-test-snuba travis-test-symbolicator travis-test-js travis-test-js-build
 .PHONY: travis-test-cli travis-test-relay-integration
-travis-test-postgres: test-python
+travis-test-postgres: test-python-ci
 travis-test-acceptance: test-acceptance
 travis-test-snuba: test-snuba
 travis-test-symbolicator: test-symbolicator
-travis-test-js: test-js
+travis-test-js: test-js-ci
 travis-test-js-build: test-js-build
 travis-test-cli: test-cli
 travis-test-plugins: test-plugins