29 lines
847 B
YAML
29 lines
847 B
YAML
linux:
|
|
image: python:3.8
|
|
services:
|
|
- name: docker:dind
|
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
|
command: ["dockerd-entrypoint.sh"]
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375/
|
|
DOCKER_DRIVER: overlay2
|
|
# See https://github.com/docker-library/docker/pull/166
|
|
DOCKER_TLS_CERTDIR: ""
|
|
script:
|
|
- curl -sSL https://get.docker.com/ | sh
|
|
- python -m pip install -r requirements-dev.txt
|
|
- python ./bin/run_tests.py
|
|
|
|
windows:
|
|
tags:
|
|
- shared-windows
|
|
- windows
|
|
- windows-1809
|
|
script:
|
|
- choco install python2 vcredist2008 -f -y
|
|
- choco install --ignore-dependencies vcpython27 -f -y
|
|
- choco install python3 --version 3.6.8 --no-progress -y
|
|
- $env:PATH="C:\Python36;C:\Python36\Scripts;$env:PATH"
|
|
- python -m pip install -r requirements-dev.txt
|
|
- python ./bin/run_tests.py
|