File: .travis.yml

package info (click to toggle)
django-nose 1.4.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 404 kB
  • sloc: python: 918; makefile: 207; sh: 160
file content (161 lines) | stat: -rw-r--r-- 7,186 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
sudo: false
language: python
env:
    global:
        - COVERAGE=1 RUNTEST_ARGS="-v --noinput"
matrix:
    include:
        # Quality checks
        - env: TOXENV=flake8
          python: "3.5"
        - env: TOXENV=docs
          python: "3.5"
        # Supported Python / Django versions w/ SQLite
        - env: TOXENV=py35-django-21
          python: "3.5"
        - env: TOXENV=py36-django-21
          python: "3.6"
        - env: TOXENV=py37-django-21
          python: "3.7"
          sudo: required
          dist: xenial
        - env: TOXENV=py35-django-20
          python: "3.5"
        - env: TOXENV=py36-django-20
          python: "3.6"
        - env: TOXENV=py27-django-111
          python: "2.7"
        - env: TOXENV=py36-django-111
          python: "3.6"
        - env: TOXENV=py27-django-110
          python: "2.7"
        - env: TOXENV=py35-django-110
          python: "3.5"
        - env: TOXENV=py27-django-19
          python: "2.7"
        - env: TOXENV=py35-django-19
          python: "3.5"
        - env: TOXENV=py27-django-18
          python: "2.7"
        - env: TOXENV=py34-django-18
          python: "3.4"
        # Test with PostgreSQL
        - env: TOXENV=py35-django-21-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-21-postgres"
          python: "3.5"
          services: postgresql
        - env: TOXENV=py36-django-21-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-21-postgres"
          python: "3.6"
          services: postgresql
        - env: TOXENV=py37-django-21-postgres DATABASE_URL="postgres://postgres@localhost:5432/py37-django-21-postgres"
          python: "3.7"
          sudo: required
          dist: xenial
          services: postgresql
        - env: TOXENV=py35-django-20-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-20-postgres"
          python: "3.5"
          services: postgresql
        - env: TOXENV=py36-django-20-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-20-postgres"
          python: "3.6"
          services: postgresql
        - env: TOXENV=py37-django-20-postgres DATABASE_URL="postgres://postgres@localhost:5432/py37-django-20-postgres"
          python: "3.7"
          sudo: required
          dist: xenial
          services: postgresql
        - env: TOXENV=py27-django-111-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-111-postgres"
          python: "2.7"
          services: postgresql
        - env: TOXENV=py36-django-111-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-111-postgres"
          python: "3.6"
          services: postgresql
        - env: TOXENV=py27-django-110-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-110-postgres"
          python: "2.7"
          services: postgresql
        - env: TOXENV=py35-django-110-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-110-postgres"
          python: "3.5"
          services: postgresql
        - env: TOXENV=py27-django-19-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-19-postgres"
          python: "2.7"
          services: postgresql
        - env: TOXENV=py35-django-19-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-19-postgres"
          python: "3.5"
          services: postgresql
        - env: TOXENV=py27-django-18-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-18-postgres"
          python: "2.7"
          services: postgresql
        # Test with MySQL
        - env: TOXENV=py35-django-21-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-21-mysql"
          python: "3.5"
          services: mysql
        - env: TOXENV=py36-django-21-mysql DATABASE_URL="mysql://travis@localhost:3306/py36-django-21-mysql"
          python: "3.6"
          services: mysql
        - env: TOXENV=py37-django-21-mysql DATABASE_URL="mysql://travis@localhost:3306/py37-django-21-mysql"
          python: "3.7"
          sudo: required
          dist: xenial
          services: mysql
        - env: TOXENV=py35-django-20-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-20-mysql"
          python: "3.5"
          services: mysql
        - env: TOXENV=py36-django-20-mysql DATABASE_URL="mysql://travis@localhost:3306/py36-django-20-mysql"
          python: "3.6"
          services: mysql
        - env: TOXENV=py37-django-20-mysql DATABASE_URL="mysql://travis@localhost:3306/py37-django-20-mysql"
          python: "3.7"
          sudo: required
          dist: xenial
          services: mysql
        - env: TOXENV=py27-django-111-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-111-mysql"
          python: "2.7"
          services: mysql
        - env: TOXENV=py36-django-111-mysql DATABASE_URL="mysql://travis@localhost:3306/py36-django-111-mysql"
          python: "3.6"
          services: mysql
        - env: TOXENV=py27-django-110-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-110-mysql"
          python: "2.7"
          services: mysql
        - env: TOXENV=py35-django-110-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-110-mysql"
          python: "3.5"
          services: mysql
        - env: TOXENV=py27-django-19-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-19-mysql"
          python: "2.7"
          services: mysql
        - env: TOXENV=py35-django-19-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-19-mysql"
          python: "3.5"
          services: mysql
        - env: TOXENV=py27-django-18-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-18-mysql"
          python: "2.7"
          services: mysql
        # Django master is allowed to fail
        - env: TOXENV=py35-django-master
          python: "3.5"
        - env: TOXENV=py36-django-master
          python: "3.6"
        - env: TOXENV=py37-django-master
          python: "3.7"
          sudo: required
          dist: xenial
        - env: TOXENV=py35-django-master-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-master-mysql"
          python: "3.5"
          language: pyth
          services: mysql
        - env: TOXENV=py36-django-master-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-master-postgres"
          python: "3.6"
          services: postgresql
    allow_failures:
        # Master is allowed to fail
        - env: TOXENV=py35-django-master
        - env: TOXENV=py36-django-master
        - env: TOXENV=py37-django-master
        - env: TOXENV=py35-django-master-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-master-mysql"
        - env: TOXENV=py36-django-master-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-master-postgres"

install:
    - pip install tox coveralls
before_script:
    - coverage erase
    - bash -c "if [[ \"$DATABASE_URL\" == postgres* ]]; then psql -c 'create database \"$TOXENV\";' -U postgres; fi"
    - bash -c "if [[ \"$DATABASE_URL\" == mysql* ]]; then mysql -e 'create database IF NOT EXISTS \`$TOXENV\`;'; fi"
script: tox
after_success: coveralls