File: .travis.yml

package info (click to toggle)
python-django-tagging 1%3A0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 376 kB
  • sloc: python: 2,131; makefile: 166
file content (41 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download
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
language: python
python:
    - 3.7
    - 3.8
services:
    - postgresql
    - mysql
env:
    - DJANGO=1.11 DATABASE_ENGINE=sqlite
    - DJANGO=1.11 DATABASE_ENGINE=postgres
    - DJANGO=1.11 DATABASE_ENGINE=mysql
    - DJANGO=2.2 DATABASE_ENGINE=sqlite
    - DJANGO=2.2 DATABASE_ENGINE=postgres
    - DJANGO=2.2 DATABASE_ENGINE=mysql
    - DJANGO=3.0 DATABASE_ENGINE=sqlite
    - DJANGO=3.0 DATABASE_ENGINE=postgres
    - DJANGO=3.0 DATABASE_ENGINE=mysql

install:
    - pip install -U setuptools zc.buildout
    - buildout versions:django=$DJANGO
    - sh -c "if [ '$DATABASE_ENGINE' = 'postgres' ];
      then
        pip install psycopg2;
        psql -c 'create database tagging;' -U postgres;
      fi"
    - sh -c "if [ '$DATABASE_ENGINE' = 'mysql' ];
      then
        pip install mysqlclient;
        mysql -e 'create database tagging CHARACTER SET utf8 COLLATE utf8_general_ci;';
        mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql;
      fi"
before_script:
    - ./bin/flake8 tagging
script:
    - ./bin/test-and-cover
after_success:
    - ./bin/coveralls
notifications:
    irc:
        - "irc.freenode.org#django-tagging"