-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 874 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: python
python:
- "2.7"
env:
- DOCKER_COMPOSE_VERSION=1.21.0
sudo: required
services:
- docker
dist: trusty
before_install:
- 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
- docker-compose version
install: "pip install -r requirements.txt"
before_script:
- docker build -t alexandria:current .
- sudo ln -s . /librarian
script: "sudo docker-compose -f docker-compose-test.yml run -e CODECOV_TOKEN test"
after_success: "sudo docker-compose -f docker-compose-test.yml run -e CODECOV_TOKEN --entrypoint codecov test"
after_failure: "sudo docker-compose -f docker-compose-test.yml run -e CODECOV_TOKEN --entrypoint codecov test"