forked from DataDog/dd-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (54 loc) · 1.49 KB
/
.travis.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo: false
branches:
only:
- master
- /^\d+\.\d+\.x$/ # release forked patches branch
language: python
python:
- "2.7"
cache:
directories:
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION.9
- vendor/cache
- $HOME/embedded
- $HOME/integrations-core
matrix:
fast_finish: true
env:
global:
- CONCURRENCY=2
- NOSE_FILTER="not windows"
- INTEGRATIONS_DIR=$HOME/embedded
- CHECKSD_OVERRIDE=$TRAVIS_BUILD_DIR/tests/checks/fixtures/checks
- PIP_CACHE=$HOME/.cache/pip
- VOLATILE_DIR=/tmp
- DD_CASHER_DIR=/tmp/casher
- INTEGRATIONS_CORE_BRANCH=master
matrix:
- TRAVIS_FLAVOR=default
- TRAVIS_FLAVOR=checks_mock
matrix:
include:
- python: 2.7
sudo: required
dist: trusty
services: docker
env: TRAVIS_FLAVOR=core_integration
# Override travis defaults with empty jobs
before_install:
- rvm install 2.1.5
install:
- git -C $HOME/integrations-core pull || git clone -b $INTEGRATIONS_CORE_BRANCH --depth 1 https://github.com/DataDog/integrations-core.git $HOME/integrations-core
- cd $HOME/integrations-core/datadog_checks_base && python setup.py bdist_wheel && pip install . && cd -
before_script: echo "OVERRIDING TRAVIS STEPS"
script:
- bundle install
- bundle package
# Needed if no cache exists
- mkdir -p $INTEGRATIONS_DIR
- ls -al $INTEGRATIONS_DIR
- bundle exec rake ci:run
- ls -al $INTEGRATIONS_DIR
after_failure:
- echo "Logs from installation process come here / DEBUG LOGS"
- cat /tmp/ci.log