forked from dask/dask-yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.27 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
language: python
sudo: required
dist: trusty
os: linux
python:
- "3.6"
services:
- docker
git:
depth: false # Ensure latest tag is pulled
branches:
only:
- master
jobs:
fast_finish: true
include:
- env:
- CLUSTER_CONFIG=kerberos
- PYTHON=3.7
- env:
- CLUSTER_CONFIG=simple
- PYTHON=3.6
before_install:
# Upgrade docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Install the test cluster
- pip install git+https://github.com/jcrist/hadoop-test-cluster.git
# Start the test cluster
- htcluster startup --mount .:dask-yarn --config $CLUSTER_CONFIG
# No-op to ensure fixuid runs in a more robust way
- htcluster exec -- pwd
install:
- htcluster exec -- ./dask-yarn/continuous_integration/travis/install.sh $PYTHON
script:
- set -e
- export CONDA_ENV=/home/testuser/miniconda/envs/test-environment
- |
if [[ "$CLUSTER_CONFIG" == "kerberos" ]]; then
htcluster exec -- kinit testuser -kt testuser.keytab
fi
- htcluster exec -- ./dask-yarn/continuous_integration/travis/run-tests.sh
notifications:
email: false