aboutsummaryrefslogtreecommitdiffstats
path: root/ci/setup.yml
blob: 1c66aa78eddf7ef7799531d45e48e7d991710f63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 \
        --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'