You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. kind: pipeline
  2. type: docker
  3. name: run_tests
  4. volumes:
  5. - name: docker_sock
  6. host:
  7. path: /var/run/docker.sock
  8. steps:
  9. - name: build and test in docker image
  10. image: docker
  11. volumes:
  12. - name: docker_sock
  13. path: /var/run/docker.sock
  14. commands:
  15. - docker build --build-arg STAGE=test -t mytestimage .
  16. - docker run --network="host" mytestimage python -m pytest test
  17. when:
  18. event: [push]