This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
55 lines (42 loc) · 1.95 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
branches:
only:
- master
sudo: required
services:
- docker
language: python
python:
- "2.7"
env:
global:
- DOCKER_COMPOSE_VERSION=1.14.0
before_install:
# Install Docker Engine
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
# Install Docker Compose
- sudo rm /usr/local/bin/docker-compose
- sudo curl -L "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose --version
# Install other tools
- pip install coveralls
# Disable postgres so our container can use Port 5432
- sudo service postgresql stop
before_script:
- docker-compose up --build -d
script:
- docker exec -it djangoosgeoimporter_django_1 mkdir -p -m 777 /app/importer-test-files
- docker exec -it djangoosgeoimporter_django_1 aws --no-sign-request s3 sync s3://mapstory-data/importer-test-files/ /app/importer-test-files
- docker exec -it djangoosgeoimporter_django_1 python manage.py test osgeo_importer
after_script:
- docker-compose down
after_success:
- coveralls
notifications:
slack:
secure: kEr/kA3yDp2dVKAs33veSzUG7QNppwD5E/rCisJwA0hasI/NkW95lCfS9/dqmvPoNiUoYxZwySPJVNVP9u2jAVMhqYe/WjPjm1aGqB3ouSzr/gmm9rfCFTMeR+iDIJgApu0jvEqlq9X4RIO/cOeGsgTinAL+auvkmulacxf2xcyjEXSmre7jSSzr+JLtwpkF67MOl5f9S522L81vVX6KGuYhwYxQFJMFLBtu1WHFzTH+BOssnMpctVYbZvx+zHr79zS/wn2yareUl7yCR2E6PQrGRzZsR1ljg4YTc7tDmSE1cW5ojORJhK1AyieUYRJEIfhIqJ3dp7EK5wrk97oKl6tsoGsNJSpvCnp12+MCW82ioA92K1cuUZi4BBEos538z0eaVqqxFZBdNF5MqvhGg8bAtoE2wnSFrSpTmUMvID5WzNq3U2H+PBOtD67qhTeINEKic6C7tHmNMQTAtz4gZvFPK+3fDktLVIV5dUy6oPbB5zqcEnuIxmLJNl8U3KoiAZo+hwB7QBF6xi2V7yIEvsGHZGNT4ABc+sSgaupbrlePgsKzfQIk6kk97ppbDrSazIKNvf0kJQm0LZzwbkUZVmnfVtkgoF6EeygCxVykCDhsKUJpRZeJB5F/YOXVuXIC/WoFPLN0pRq30oTfoOuEbi1Ik1llvlBueYGBOhiLsuM=
email:
on_success: never
on_failure: never