forked from geofront-auth/geofront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.87 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
language: python
sudo: false
python:
- 3.3
- 3.4
- 3.5
- 3.6
- pypy3
matrix:
allow_failures:
- python: pypy3
env:
global:
# GitHub
- secure: "jZVzNDRii4P1ay6FIlzMbuIVE2u4o4trSwWD09G0MVLv1PLbv05a4ToDjwYv7b8hcOeTIUAUHtTNaaIwuPf256OUhpmRoROy/XkdShZGh5pw4RrTH2Pgo3hxjRN011AzcUmVoiw68hYHSN9yzVZHhtVrKKwXP2H96Aae6BTmCPA="
# S3
- secure: "F8AKUR2WrOt2POoFL4I1h2KEvffYGc+RgjzYnmLUNsFCfsL+tZSa3enxCPJQs7UZLr23PIhKDiPgASGscQJbH7yiqQ5EHnrdiPQVAphj7qtrKHJkqGy3UeSsrOI/PhWTO0fmE0bs+9BWl86Lg+M5R0oLHdapOOFhu+pwXyoC8rc="
- secure: "GTRvF2s/RcnmUINh6LlHGBZedDP8KyaD15u/Cy4fgq+9pqqbhGNCcBlrlvpw/Vlf1iDLqG9nm5LRFLcbv6SmdEeucU2vQlC9g2c4MZJGEq+yMMbG/LKnpGGSXH08zMIAzk4hjNWGXRdT3N5HswLAnc2YlHj6tk2Y5dlufgQGEJw="
services:
- redis-server
install:
- pip install psycopg2 PyMySQL http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip
- pip install tox-travis codecov
- pip freeze || true
before_script:
- createdb -U postgres -E utf8 -T postgres geofront_test
- mysql -e 'CREATE DATABASE geofront_test;'
script:
- python -mgeofront.version
- |
port_min="$(expr '(' "${TRAVIS_JOB_NUMBER#[0-9][0-9]*.}" - 1 ')' '*' 180 + 12220)"
port_max="$(expr "${TRAVIS_JOB_NUMBER#[0-9][0-9]*.}" '*' 180 + 12220 - 1)"
tox -- \
--flake8 \
--cov geofront \
--durations=20 \
--sshd-port-min="$port_min" \
--sshd-port-max="$port_max" \
--sshd-state-timeout=60 \
--redis-host=localhost \
--postgresql-database=geofront_test \
--postgresql-user=postgres \
--mysql-database=geofront_test \
--mysql-host=localhost \
--mysql-user=root \
--github-access-token="$GITHUB_ACCESS_TOKEN" \
--github-org-login="$GITHUB_ORG_LOGIN" \
--github-team-slugs="$GITHUB_TEAM_SLUGS" \
--aws-access-key="$AWS_ACCESS_KEY" \
--aws-secret-key="$AWS_SECRET_KEY" \
--aws-s3-bucket="$AWS_S3_BUCKET" \
-vv
after_success:
- codecov