diff options
| author | 2020-02-27 20:53:13 -0800 | |
|---|---|---|
| committer | 2020-02-27 20:53:13 -0800 | |
| commit | 184da24f7dd94b90a5251ca8a54ee87c069f940c (patch) | |
| tree | cac8d7d53e3e32e3f20125662ceef4604ab0303c /ci/setup.yml | |
| parent | Merge pull request #62 from python-discord/bug/ci/61/python-symlink-not-resol... (diff) | |
| parent | CI: fix can_pull causing script to exit with code 1 (diff) | |
Merge pull request #54 from python-discord/ci-improvements
CI Improvements
Diffstat (limited to 'ci/setup.yml')
| -rw-r--r-- | ci/setup.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ci/setup.yml b/ci/setup.yml new file mode 100644 index 0000000..cf190de --- /dev/null +++ b/ci/setup.yml @@ -0,0 +1,24 @@ +steps: + # The linter and all tests run inside this container. + # The venv image will be pulled if it doesn't exist locally. + - script: | + docker run \ + --tty \ + --detach \ + --name snekbox_test \ + --privileged \ + --network host \ + --hostname pdsnk-dev \ + -e PYTHONDONTWRITEBYTECODE=1 \ + -e PIPENV_PIPFILE="/snekbox/Pipfile" \ + -e ENV="${PWD}/scripts/.profile" \ + --volume "${PWD}":"${PWD}" \ + --workdir "${PWD}"\ + --entrypoint /bin/bash \ + pythondiscord/snekbox-venv:latest + displayName: 'Start Container' + + - script: | + docker exec snekbox_test /bin/bash -c \ + 'pipenv install --system --deploy --dev' + displayName: 'Install Development Dependencies' |