forked from DataDog/integrations-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
49 lines (47 loc) · 2.72 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
41
42
43
44
45
46
47
48
49
machine:
python:
version: 2.7.10
ruby:
version: 2.2.6
services:
- docker
environment:
NOSE_FILTER: 'not windows and not fixme'
VOLATILE_DIR: '/tmp/integration-sdk-testing'
SKIP_CLEANUP: 'true'
INTEGRATIONS_DIR: "$HOME/embedded"
CI_BUILD_DIR: "$HOME/$CIRCLE_PROJECT_REPONAME"
PIP_CACHE: "$HOME/.cache/pip"
SDK_TESTING: "true"
DD_AGENT_BRANCH: "master"
CORE_BRANCH: "master"
JMXFETCH_URL: "https://dd-jmxfetch.s3.amazonaws.com"
REQ_LOCALS: "$HOME/$CIRCLE_PROJECT_REPONAME,$HOME/dd-agent,$HOME/integrations-core"
dependencies:
pre:
- sudo apt-get update ; sudo apt-get install -y curl apt-transport-https git snmp snmp-mibs-downloader
- git -C $HOME/dd-agent pull || git clone -b $DD_AGENT_BRANCH --depth 1 https://github.com/DataDog/dd-agent.git $HOME/dd-agent
- git -C $HOME/integrations-core pull || git clone -b $CORE_BRANCH --depth 1 https://github.com/DataDog/integrations-core.git $HOME/integrations-core
- echo "$HOME/dd-agent/" > $(dirname $(pyenv which python))/../lib/python2.7/site-packages/datadog-agent.pth
- echo "$HOME/dd-agent/" > $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/datadog-agent.pth
- pip install pip --upgrade
- pip install docker-compose
- pip install pylint
- if [ -e ~/$CIRCLE_PROJECT_REPONAME/requirements.txt ]; then pip install -r ~/$CIRCLE_PROJECT_REPONAME/requirements.txt; fi
- if [ -e ~/$CIRCLE_PROJECT_REPONAME/requirements-test.txt ]; then pip install -r ~/$CIRCLE_PROJECT_REPONAME/requirements-test.txt; fi
- if [ -e ~/$CIRCLE_PROJECT_REPONAME/requirements-opt.txt ]; then pip install -r ~/$CIRCLE_PROJECT_REPONAME/requirements-opt.txt; fi
- if [ -e ~/dd-agent/requirements.txt ]; then pip install -r ~/dd-agent/requirements.txt; fi
- if [ -e ~/$CIRCLE_PROJECT_REPONAME/Gemfile ]; then cd ~/$CIRCLE_PROJECT_REPONAME ; bundle install; cd - ; fi
- if [ -e ~/$CIRCLE_PROJECT_REPONAME/Gemfile ]; then cd ~/$CIRCLE_PROJECT_REPONAME ; bundle exec rake setup_agent_libs; cd - ; fi
test:
override:
- bundle exec rake prep_travis_ci
- TRAVIS_FLAVOR="default" bundle exec rake ci:run
- TRAVIS_FLAVOR="snmpwalk" bundle exec rake ci:run
- TRAVIS_FLAVOR="hbase_master" bundle exec rake ci:run
- TRAVIS_FLAVOR="hbase_regionserver" bundle exec rake ci:run
- TRAVIS_FLAVOR="redis_sentinel" FLAVOR_VERSION="latest" bundle exec rake ci:run
- TRAVIS_FLAVOR="storm" bundle exec rake ci:run
- bundle exec rake requirements
post:
- if [[ $(docker ps -a -q) ]]; then docker stop $(docker ps -a -q); fi