-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (73 loc) · 2.63 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: generic
sudo: false
dist: trusty
os: linux
_base_envs:
- &test TEST='true'
- &test_and_lint TEST='true' LINT='true'
- &coverage COVERAGE='true' PARALLEL='false'
- &no_coverage COVERAGE='false' PARALLEL='true'
- &optimize PYTHONOPTIMIZE=2 XTRATESTARGS='--ignore=dask/diagnostics --ignore=dask/array/tests/test_image.py --ignore=dask/array/tests/test_stats.py --ignore=dask/bytes/tests/test_s3.py'
- &no_optimize XTRATESTARGS=
- &imports TEST_IMPORTS='true'
- &no_imports TEST_IMPORTS='false'
- &array_function NUMPY_EXPERIMENTAL_ARRAY_FUNCTION='1'
jobs:
fast_finish: true
include:
- env:
- ENV_FILE=continuous_integration/travis/travis-35.yaml
- *test
- *no_coverage
- *no_optimize
- *no_imports
- env: &py36_env
- ENV_FILE=continuous_integration/travis/travis-36.yaml
- *test_and_lint
- *coverage
- *no_optimize
- *imports
- env: &py37_env
- ENV_FILE=continuous_integration/travis/travis-37.yaml
- *test_and_lint
- *no_coverage
- *no_optimize
- *imports
- *array_function
- env: &py37_dev
- UPSTREAM_DEV=1 # Install nightly versions of NumPy, pandas, pyarrow
- ENV_FILE=continuous_integration/travis/travis-37-dev.yaml
- *test_and_lint
- *no_coverage
- *no_optimize
- *no_imports
- *array_function
if: type == cron OR commit_message =~ test-upstream # Run on cron jobs or any builds where commit message contains "test-upstream"
- env: *py36_env
if: type != pull_request
os: osx
- env:
- TEST_HDFS='true'
if: type != pull_request OR commit_message =~ test-hdfs # Skip on PRS unless the commit message contains "test-hdfs"
sudo: true
services:
- docker
before_install:
- source continuous_integration/hdfs/startup_hdfs.sh
allow_failures:
- env: *py37_dev
- os: osx
install:
- if [[ $TEST_HDFS == 'true' ]]; then source continuous_integration/hdfs/install.sh; fi
- if [[ $TEST == 'true' ]]; then source continuous_integration/travis/install.sh; fi
script:
- if [[ $TEST_HDFS == 'true' ]]; then source continuous_integration/hdfs/run_tests.sh; fi
- if [[ $TEST == 'true' ]]; then source continuous_integration/travis/run_tests.sh; fi
- if [[ $LINT == 'true' ]]; then pip install flake8 ; flake8 dask; fi
- if [[ $LINT == 'true' ]]; then pip install black ; black dask --check; fi
- if [[ $TEST_IMPORTS == 'true' ]]; then source continuous_integration/travis/test_imports.sh; fi
after_success:
- codecov
- source continuous_integration/travis/after_success.sh
notifications:
email: false