diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a4c6012..d75559c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,23 @@ jobs: - checkout - setup_remote_docker - run: docker build -t bollard . - - run: dockerfiles/bin/run_integration_tests.sh + - run: dockerfiles/bin/run_integration_tests.sh --tests + test_chrono: + docker: + - image: docker:20.10.16 + steps: + - checkout + - setup_remote_docker + - run: docker build -t bollard . + - run: dockerfiles/bin/run_integration_tests.sh --features chrono --tests + test_time: + docker: + - image: docker:20.10.16 + steps: + - checkout + - setup_remote_docker + - run: docker build -t bollard . + - run: dockerfiles/bin/run_integration_tests.sh --features time --tests test_doc: docker: - image: docker:20.10.16 @@ -70,6 +86,8 @@ workflows: - test_ssl - test_http - test_unix + - test_chrono + - test_time - test_doc - test_clippy - test_audit diff --git a/dockerfiles/bin/run_integration_tests.sh b/dockerfiles/bin/run_integration_tests.sh index 47322ab9..fa9d04bc 100755 --- a/dockerfiles/bin/run_integration_tests.sh +++ b/dockerfiles/bin/run_integration_tests.sh @@ -20,4 +20,4 @@ docker push localhost:5000/hello-world:linux docker push localhost:5000/fussybeaver/uhttpd docker push localhost:5000/alpine docker swarm init -docker run -e RUST_LOG=bollard=debug -e REGISTRY_PASSWORD -e REGISTRY_HTTP_ADDR=localhost:5000 -v /var/run/docker.sock:/var/run/docker.sock -ti --rm bollard cargo test --tests -- --test-threads 1 +docker run -e RUST_LOG=bollard=debug -e REGISTRY_PASSWORD -e REGISTRY_HTTP_ADDR=localhost:5000 -v /var/run/docker.sock:/var/run/docker.sock -ti --rm bollard cargo test $@ -- --test-threads 1