This repository has been archived by the owner on Nov 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
77 lines (63 loc) · 1.93 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
language: python
sudo: true
python:
- 2.7
- 3.5
notifications:
email: false
services:
- docker
addons:
hosts:
- ci_head_1
- ci_compute_1
before_install:
# Download vagrant insecurekey
- mkdir -p ~/.vagrant.d/
- wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant -O ~/.vagrant.d/insecure_private_key
- chmod 600 ~/.vagrant.d/insecure_private_key
# Start docker containers
- docker version
- docker-compose version
- pushd ci
- docker build -t "dask-ec2-test" .
- docker-compose up -d
- docker ps
- docker images
- popd
- export TEST_CLUSTERFILE=$(pwd)/ci/cluster_docker.yaml
# Install conda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda --version
# Install dependencies
- conda create -n dask-ec2 python=$TRAVIS_PYTHON_VERSION
- source activate dask-ec2
- conda env update -f ./environment.yml
- pip install -r requirements.txt
# Mock credentials
- export AWS_ACCESS_KEY_ID=1
- export AWS_SECRET_ACCESS_KEY=1
install:
- which python
- python setup.py sdist --quiet
- pip install dist/*.tar.gz
- conda list
script:
# boto has issues with python3 on travisCI
# https://github.com/boto/boto/issues/3263
- export BOTO_CONFIG=/tmp/bogusvalue
- travis_wait 30 py.test --cov=dask_ec2 --cov-report term-missing -s -vv --durations=0
- travis_wait 30 py.test --flake8 dask_ec2
after_success:
- pip install coveralls
- coveralls
after_failure:
- docker exec -it ci_head_1 /bin/bash -c 'ps aux | grep salt'
- docker exec -it ci_head_1 /bin/bash -c 'cat /var/log/salt/minion'
- docker exec -it ci_head_1 /bin/bash -c 'cat /var/log/salt/master'
- conda list
- docker exec -it ci_head_1 /bin/bash -c 'salt "*" test.ping'