Created
March 1, 2023 19:13
-
-
Save jmoz/17c1060cc2344e2662ea159a1cfd825c to your computer and use it in GitHub Desktop.
Minimal .gitlab-ci.yml to run tests via docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker/compose:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- test | |
- deploy | |
before_script: | |
- docker info | |
- docker-compose --version | |
build-job: | |
stage: build | |
script: | |
- docker-compose build | |
unittest-job: | |
stage: test | |
script: | |
- docker-compose run shogunbt python -m unittest | |
deploy-job: | |
stage: deploy | |
environment: production | |
script: | |
- echo "Deploying application..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment