Skip to content

Commit

Permalink
Add chrono and time test ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
fussybeaver committed Jun 18, 2022
1 parent ffb1b0b commit 14fdfbe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .circleci/config.yml
Expand Up @@ -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
Expand Down Expand Up @@ -70,6 +86,8 @@ workflows:
- test_ssl
- test_http
- test_unix
- test_chrono
- test_time
- test_doc
- test_clippy
- test_audit
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -40,4 +40,4 @@ test_script:
- ps: Set-Item -path env:RUST_BACKTRACE -value 1
- ps: Set-Item -path env:RUST_LOG -value "hyper=trace,bollard=debug"
- ps: Set-Item -path env:REGISTRY_HTTP_ADDR -value localhost:5000
- cargo test --verbose -- --nocapture --test-threads 1
- cargo test --verbose --tests -- --nocapture --test-threads 1
2 changes: 1 addition & 1 deletion dockerfiles/bin/run_integration_tests.sh
Expand Up @@ -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

0 comments on commit 14fdfbe

Please sign in to comment.