-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
50 lines (36 loc) · 1.14 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
language: python
dist: xenial
matrix:
fast_finish: true
include:
# Here you can add or remove specific builds, and Python versions. Conda
# removed Python 2 support, so only Python 3 and above can be used.
- stage: 'style checks'
python: '3.7'
language: python
env: TEST_SUITE=flake8
- stage: 'unit tests'
python: '3.7'
language: python
env: TEST_SUITE=unit
- python: '3.8'
language: python
env: TEST_SUITE=unit
stages:
- 'style checks'
- 'unit tests'
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda info -a
- export SPARK_LOCAL_IP="127.0.0.1"
install:
# We just set up a conda environment with the right Python version. This
# should not need changing.
- conda env create -f conda-python-$TRAVIS_PYTHON_VERSION-test-env.yaml -n test
- source activate test
script:
- bash .travis-$TEST_SUITE-script.sh