forked from dask/dask-ec2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (57 loc) · 1.72 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
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 test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- 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
script:
- travis_wait 30 py.test --cov=dask_ec2 --cov-report term-missing -s -vv --durations=0
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'