cpy3/.circleci/config.yml

44 lines
1.4 KiB
YAML

version: 2
templates:
job_template: &job_template
working_directory: /go/src/github.com/DataDog/go-python3
docker:
- image: golang:1.11.2
jobs:
python3.5:
<<: *job_template
steps:
- checkout
- run: echo "deb http://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
- run: apt-get update && apt-get install -y python3.5-dev
- run: cp /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.5.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc
- run: cd test && go build && ./test
python3.6:
<<: *job_template
steps:
- checkout
- run: echo "deb http://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
- run: apt-get update && apt-get install -y python3.6-dev
- run: cp /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.6.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc
- run: cd test && go build && ./test
python3.7:
<<: *job_template
steps:
- checkout
- run: echo "deb http://deb.debian.org/debian unstable main" >> /etc/apt/sources.list
- run: apt-get update && apt-get install -y python3.7-dev
- run: cp /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.7.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc
- run: cd test && go build && ./test
workflows:
version: 2
build_test_deploy:
jobs:
- python3.5
- python3.6
- python3.7