forked from latenighttales/alcali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (31 loc) · 986 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: python
python: 3.6
services: docker
env:
- DOCKER_COMPOSE_VERSION=1.23.2
before_install:
# Stop the postgres instance travis sets up automatically
- sudo /etc/init.d/postgresql stop
- sudo /etc/init.d/mysql stop
# Update 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
- docker -v
- docker-compose --version
# Setup env config
- export USER_ID=$(id -u ${USER})
- cp env.sample .env
install:
- pip install black
- docker-compose -f docker-compose-ci.yml up --build -d
script:
- bash docker/utils/ci_script.sh
after_script:
- black --check .
after_success:
- docker-compose exec -u alcali web safety check
- docker-compose exec -u alcali -e CODECOV_TOKEN web codecov -X s3
after_failure:
- docker-compose logs