forked from 5afe/safe-relay-service
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
42 lines (42 loc) · 1.13 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
dist: xenial
language: python
cache: pip
python:
- "3.7"
env:
global:
- DOCKERHUB_PROJECT=safe-relay-service
- SOURCE_FOLDER=safe_relay_service
- PIP_USE_MIRRORS=true
- DJANGO_SETTINGS_MODULE=config.settings.test
- DATABASE_URL=psql://postgres@localhost/travisci
- ETHEREUM_NODE_URL=http://localhost:8545
addons:
postgresql: "9.6"
services:
- docker
- postgresql
- redis-server
install:
- npm install -g [email protected] && ganache-cli -d -p 8545 --defaultBalanceEther 10000 --gasLimit 10000000 -a 30 --noVMErrorsOnRPCResponse > /dev/null &
- travis_retry pip install -r requirements-test.txt
- travis_retry pip install coveralls
before_script:
- psql -c 'create database travisci;' -U postgres
script:
- coverage run --source=$SOURCE_FOLDER -m py.test -W ignore::DeprecationWarning
deploy:
- provider: script
script: bash scripts/deploy_docker.sh staging
on:
branch: master
- provider: script
script: bash scripts/deploy_docker.sh develop
on:
branch: develop
- provider: script
script: bash scripts/deploy_docker.sh $TRAVIS_TAG
on:
tags: true
after_success:
- coveralls