forked from DataDog/integrations-extras
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (58 loc) · 1.53 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
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:
# FIXME: re-enable as soon as we fix the manifest files
# - ddev -e manifest verify --include-extras
- travis_retry ddev -e test ${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:
# FIXME: re-enable as soon as we fix the manifest files
# - ddev -e manifest verify --include-extras
- ddev -e test
- stage: test
env: CHECK=reboot_required
- stage: test
env: CHECK=sortdb
- stage: test
env: CHECK=traefik
before_install:
- PATH="$PATH:$(pyenv root)/versions/3.6/bin"
install:
- pip install -U pip setuptools
- pip install -r requirements-dev.txt
- ddev config set extras .
# 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