forked from DataDog/integrations-extras
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
60 lines (55 loc) · 1.59 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
sudo: required
services:
- docker
language: python
python:
- '2.7'
cache:
directories:
- "$HOME/.cache/pip"
git:
depth: 3
branches:
only:
- master
env:
global:
- SKIP_CLEANUP=true
- PIP_CACHE=$HOME/.cache/pip
stages:
- name: test_changed
if: type = pull_request
- name: test
if: (branch = master) AND (type != pull_request)
script: travis_retry inv test --targets=${CHECK}
# Conditional jobs are currently buggy and verbose.
#
# https://github.com/travis-ci/beta-features/issues/28
# https://github.com/travis-ci/beta-features/issues/40
# https://github.com/travis-ci/travis-ci/issues/8295
# https://github.com/travis-ci/travis-conditions/pull/1
# https://github.com/travis-ci/travis-ci/issues/6652
jobs:
fast_finish: true
include:
- stage: test_changed
script:
# - inv manifest --include-extras FIXME: re-enable as soon as we fix the manifest files
- inv test --changed-only
- stage: test
env: CHECK=reboot_required
script:
# - inv manifest --include-extras FIXME: re-enable as soon as we fix the manifest files
- travis_retry inv test --targets=${CHECK}
- stage: test
env: CHECK=sortdb
script:
# - inv manifest --include-extras FIXME: re-enable as soon as we fix the manifest files
- travis_retry inv test --targets=${CHECK}
install:
- pip install -U pip setuptools
- pip install -r requirements-dev.txt
# we should clean generated files before we save the cache
# We don't want to save .pyc files, so we'll use find and -delete
before_cache:
- find $HOME/.cache/pip -name *.pyc -delete