forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
40 lines (37 loc) · 1.32 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
machine:
services:
- docker
environment:
CASS_DRIVER_NO_EXTENSIONS: 1
AGENT_BUILD_PATH: "/home/ubuntu/agent"
post:
- pyenv global 2.7.11 3.4.4
dependencies:
pre:
# we should use an old docker-compose because CircleCI supports
# only docker-engine==1.9
- pip install docker-compose==1.7.1
- sudo apt-get install libmemcached-dev # required for pylibmc
# prepare and run the trace agent
# TODO[manu]: remove this part when everything will be open source
- git clone [email protected]:DataDog/raclette.git $AGENT_BUILD_PATH
- cd $AGENT_BUILD_PATH && docker build -t datadog/trace-agent .
- docker run -d -e DD_API_KEY=invalid_key_but_this_is_fine -e DD_BIND_HOST=0.0.0.0 -p 127.0.0.1:7777:7777 datadog/trace-agent
test:
override:
- rake test
deployment:
dev:
branch: /(master)|(develop)/
# CircleCI is configured to provide VERSION_SUFFIX=$CIRCLE_BRANCH$CIRCLE_BUILD_NUM
commands:
- pip install mkwheelhouse sphinx
- S3_DIR=trace-dev rake release:wheel
- S3_DIR=trace-dev rake release:docs
unstable:
tag: /v[0-9]+(\.[0-9]+)*/
# Nullify VERSION_SUFFIX to deploy the package with its public version
commands:
- pip install mkwheelhouse sphinx
- S3_DIR=trace VERSION_SUFFIX= rake release:wheel
- S3_DIR=trace rake release:docs