diff --git a/.circleci/config.yml b/.circleci/config.yml index 595fa05..c11096a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,15 +44,10 @@ reference: # uid 1001 but uid 1000 is used in the containers. sudo chown -R 1000 . - run_unit_tests_step: &run_unit_tests_step + run_tests_step: &run_tests_step run: - name: Run unit tests - command: make test-unit - - run_functional_tests_step: &run_functional_tests_step - run: - name: Run functional tests - command: make test-functional + name: Run tests + command: make tests build_release_step: &build_release_step run: @@ -72,8 +67,7 @@ jobs: - <<: *build_docker_image_step - <<: *restore_cache_step - <<: *chown_working_directory_step - - <<: *run_unit_tests_step - - <<: *run_functional_tests_step + - <<: *run_tests_step - <<: *enlight_cache_step - <<: *save_cache_step diff --git a/Makefile b/Makefile index 4cd6605..7d16127 100644 --- a/Makefile +++ b/Makefile @@ -18,15 +18,7 @@ build-release: docker-compose run --rm app \ cargo build --release -# https://manpages.debian.org/testing/cargo/cargo-test.1.en.html -.PHONY: test-unit -test-unit: - docker-compose run --rm app \ - cargo test --tests $(TEST_FLAGS) \ - -p ci \ - # add the other packages to test with the -p flag - -.PHONY: test-functional -test-functional: +.PHONY: tests +tests: docker-compose run --rm app \ cargo test --tests $(TEST_FLAGS)