-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (46 loc) · 1.54 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
sudo: required
language: python
python:
- "3.5"
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.11.2
before_install:
# Install latest available version of docker
- sudo apt-get update
- sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-ce make
# Install a more recent version of docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Clean up docker cache and start the Hadoop cluster
- docker system prune -af
- cd docker && docker-compose up -d && cd ..
# Wait a bit for the cluster to be up
- sleep 30
install:
# Some checks on docker and Hadoop cluster health
- docker-compose --version
- docker --version
- docker ps
- docker network ls
- docker network inspect docker_default
- cd docker && docker-compose ps && cd ..
script:
# Run pytest from the joblib-hadoop-client docker container
- make docker-test
after_success:
# Send coverage results to codecov
# The coverage was generated inside the container, we need to replace the
# /shared folder occurences with the host project path since codecov
# doesn't handle correctly
- sed -i "s/\/shared/${PWD//\//\\/}/" coverage.xml
- codecov
after_failure:
- make docker-stop
after_script:
- make docker-stop
notifications:
email: false