-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 3.55 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
language: python
python: 3.6
sudo: false
branches:
only:
- master
- develop
services:
- docker
env:
global:
- AWS_ACCESS_KEY_ID='foo' AWS_DEFAULT_REGION='us-east-1' AWS_SECRET_ACCESS_KEY='bar' ENV='test'
DATABASE_TEST_URL=postgresql://briefy:briefy@127.0.0.1:9998/briefy-leica-unit_test SQS_IP=127.0.0.1
DATABASE_URL=postgresql://briefy:briefy@127.0.0.1:9978/briefy-leica-unit_test SQS_IP=127.0.0.1
SQS_PORT=5000 USER_SERVICE_BASE=https://api.stg.briefy.co/internal BOTO_CONFIG=/tmp/nowhere
CACHE_BACKEND=dogpile.cache.redis CACHE_PORT=6379 ENABLE_CACHE=True
matrix:
- TOXENV=py36
install:
- docker run -d -p 127.0.0.1:6379:6379 --name redis redis
- docker run -d -p 127.0.0.1:5000:5000 --name sqs briefy/aws-test:latest sqs
- docker run -d -p 127.0.0.1:9978:5432 -e POSTGRES_PASSWORD=briefy -e POSTGRES_USER=briefy -e POSTGRES_DB=briefy-leica-unit_test --name briefy-leica-unit_test mdillon/postgis:9.6
- pip install -r requirements/dev.txt
- pip install flake8
script:
- make test
after_success:
- make docs
- git fetch --unshallow
notifications:
slack: briefy:qxjOPwcrGEtVx3aCQBr812t9
deploy:
provider: deis
controller: https://deis.stg.briefy.co
cli_version: v2.4.0
app: briefy-leica
username: ci
password:
secure: QFFi1datgLUGGIndn8M5Ht5+rgvNxcMP2M+5jK+8awWR3HoAV5i0s0/9ykDWe5/qX7C78BO703qCYrNUYyTIPqbGHcvL8rx2c1mCNUfdToc32ohias3alZn+14LintzodZz6qnxZogJgNPljCD2G5mOjGEXD1rY/mjRu593y4gB48e+KXYuLj8qL8SMjQWgp5K0g1HUlQacJ3CyrAyku8WVSFBGHbgbUx1y+//XA40vWKDDOonusl6SVPms2+Z/E2NvvBPuIbgPLEArygTLCJ7CGnQQvUA335+g3Uhc9YEDV4curfUgDKcW3d63nTsv0L4dKlVmMy5sB+06XKvoAaoF8ASEpJ1pIRO1T4b2kL7pPqnU5Ce4fMZmMsh0xCy2gz/AktX7MqPQWDGe7VIcIfSrKmji0OsXbSziIx6grcugz5yYbfw1B5aa9iM+0KGg0Sh8Fap16ZXaM1r6YifqrhRqV3teEGMcdmiKq4fo4KwWe8fvmxMil4DO/VFzqbH9cVVG4pikcyMhVTslt9pClTLq2g2iRzeIksdrn/V6Ol47HIC+EemX/ld9XYC2yFfLky3sFiIlS0OmLNXI4nhWckcHDZ+EvaQJ4DYQnmXx/BfQ6eC+UPh/oSpwW2jiLZBER9WoTcKosUp3am71+9ErCt07MBmGW+XFlgkRKjzcRGd0=
on:
repo: BriefyHQ/briefy.leica
branch: develop
after_deploy:
- ./notify_newrelic_deploy.sh develop
addons:
apt:
packages:
- graphviz
artifacts:
key:
secure: cPkRUt53frER83PIqsRP/5CmwcQnTMNSkvAzg/b8gSwYn/J/XIYkY8+HSrl3RuTGbD1bog1FXOe8lcyHdNzLDf5sMpcAJD1jpU2rq7eSoM1KmnHPDq4mIduoLptVGCmxOjFGwTrgKp23bTwSIVwIMMAjFSPpdZ5BrYZj38+IoLDkdV0A9D33A6XgvCsseEPclIFV0IPzEOgo9OPYHysqmnGubiTiDh0MA1c8y1XRvvIwDONC6fYKLtOqSV+oM2zYZCEub+JklWFLdTETQenZnvevMZAsTyZ4ItAbfo8Q0Ll3ReFnHyUtQei2wXY4lBLXzUi+fFQvgf3fTFC8NYXQicOqDoERkSrio87Qb1QQc3DW18r+Y5g5Tg4CIed4nWUYveYMCbSiDYg6qhEBT/oiDsyzKIu/dDZkx1gTEWgn8o86UcXcEN/XdPek19k5qC22/h0AnyUgQTrw9l2pEUxh5r42LoOzzD2lAm2rW28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