annotate .travis.yml @ 6496:13d9c0833b55

Disable wrning tests for python2. ResourceWarning is not known to python2, so don't run with any warning flags for python 2.7 since it provides no useful info.
author John Rouillard <rouilj@ieee.org>
date Mon, 06 Sep 2021 17:43:59 -0400
parents 172b8b774d0d
children fe328b70184c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6217
10d7700ff6ad Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents: 6101
diff changeset
1 os: linux
10d7700ff6ad Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents: 6101
diff changeset
2
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
3 language: python
5777
14500cf8de7b Try to set up testing on python 3.7 allow failures so if it tanks the
John Rouillard <rouilj@ieee.org>
parents: 5751
diff changeset
4
5935
f18f12d6ce9a Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents: 5932
diff changeset
5 cache: pip
f18f12d6ce9a Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents: 5932
diff changeset
6
5780
307a051e314e Reset to known good state. Leave commented out trial to get 3.7
John Rouillard <rouilj@ieee.org>
parents: 5779
diff changeset
7 python:
6495
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
8 - 2.7
6488
99d365eebefd Rearrage order of python versions.
John Rouillard <rouilj@ieee.org>
parents: 6485
diff changeset
9 - 3.9-dev
6495
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
10 - 3.8
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
11 - 3.7
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
12 - 3.6
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
13 - 3.4
172b8b774d0d Enable all python versions.
John Rouillard <rouilj@ieee.org>
parents: 6494
diff changeset
14 - nightly
5780
307a051e314e Reset to known good state. Leave commented out trial to get 3.7
John Rouillard <rouilj@ieee.org>
parents: 5779
diff changeset
15
6488
99d365eebefd Rearrage order of python versions.
John Rouillard <rouilj@ieee.org>
parents: 6485
diff changeset
16
5816
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
17 #I would like to build and test the maint-1.6 and trunk/default
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
18 #but we need different environments for these:
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
19 # maint-1.6 only python 2, install only psycopg2 version with support for
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
20 # psycopg1
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
21 branches:
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
22 # only:
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
23 # - default
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
24 # - maint-1.6
75296ce63f25 Document what I would like for testing maint-1.6 release. Don't know
John Rouillard <rouilj@ieee.org>
parents: 5798
diff changeset
25
5781
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
26 dist:
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
27 - xenial
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
28
6449
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
29 # Commented out stanza for bionic 18.04. Currently testing on
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
30 # xenial 16.04.
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
31 # Consider move to this after 2.1.0 release. Python 3.4
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
32 # is not supported on bionic and 3.4 is obsolete. Was retained
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
33 # because 3.4 was EPEL version for centos 7. With centos demise,
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
34 # remove it from 'python:' settings and test earliest still supported
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
35 # release, last two production releases and nightly to cut down on cost
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
36 # of testing.
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
37 # dist:
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
38 # - bionic
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
39 #
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
40 # python:
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
41 # - 2.7
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
42 # - 3.6
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
43 # - 3.8
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
44 # - 3.9-dev
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
45 # - nightly
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
46 #
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
47 # services:
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
48 # - mysql
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
49 # - postgresql
335c826cc089 Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents: 6383
diff changeset
50
6217
10d7700ff6ad Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents: 6101
diff changeset
51 jobs:
5917
3a6114d377f4 issue2551025: try handling operational error exception in close
John Rouillard <rouilj@ieee.org>
parents: 5916
diff changeset
52 allow_failures: # nightly not ready for prime time yet.
6217
10d7700ff6ad Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents: 6101
diff changeset
53 - python: nightly
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
54
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
55 addons:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
56 apt:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
57 sources:
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
58 - sourceline: ppa:xapian-backports/ppa
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
59
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
60 packages:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
61 # Required to build/install the xapian-binding
5373
faf3f01ef446 Run into a roadblock with trying to install python 3 compatible
John Rouillard <rouilj@ieee.org>
parents: 5372
diff changeset
62 - libxapian-dev
5494
b7fa56ced601 use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5482
diff changeset
63 # Required to install gpg
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
64 - swig
5499
a801eb13ab94 Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5498
diff changeset
65 # Required to build gpgme.
a801eb13ab94 Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5498
diff changeset
66 - gpgsm
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
67
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
68 before_install:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
69 # Sphinx required to build the xapian python bindings
5683
7483838ff74d Try to fix sphinx install failures under python 3.6 and 3.7 by pinning
John Rouillard <rouilj@ieee.org>
parents: 5670
diff changeset
70 - pip install sphinx==1.8.5
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
71 - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1)
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
72 - cd /tmp
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
73 - curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
74 - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
75 - cd xapian-bindings-$XAPIAN_VER/
6272
18c7bddd93fe travis still only has a 3.9-dev env. nighty is 3.10 but build is failing looks like configure not running so try to figure out what TRAVIS_PYHTON_VERSION is.
John Rouillard <rouilj@ieee.org>
parents: 6271
diff changeset
76 - echo $TRAVIS_PYTHON_VERSION
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
77 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python; fi
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
78 - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
6273
d0a75dc269e5 fix nightly build. Assume it's python 3 for now.
John Rouillard <rouilj@ieee.org>
parents: 6272
diff changeset
79 - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
80 - make && make install
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
81
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
82 - PATH=$VIRTUAL_ENV/bin:$PATH
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
83
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
84 # libgpg-error
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
85 - LIBGPG_ERROR_VERSION=1.32
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
86 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
87 - curl -s -O https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-$LIBGPG_ERROR_VERSION.tar.bz2
5497
f7330c11b771 Fix tar commands in .travis.yml.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5496
diff changeset
88 - tar -jxvf libgpg-error-$LIBGPG_ERROR_VERSION.tar.bz2
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
89 - cd libgpg-error-$LIBGPG_ERROR_VERSION
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
90 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
91 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
92
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
93 # libassuan
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
94 - LIBASSUAN_VERSION=2.5.1
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
95 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
96 - curl -s -O https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-$LIBASSUAN_VERSION.tar.bz2
5497
f7330c11b771 Fix tar commands in .travis.yml.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5496
diff changeset
97 - tar -jxvf libassuan-$LIBASSUAN_VERSION.tar.bz2
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
98 - cd libassuan-$LIBASSUAN_VERSION
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
99 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
100 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
101
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
102 # gpgme
5498
d7e0ab368692 Set GPGME_VERSION in .travis.yml.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5497
diff changeset
103 - GPGME_VERSION=1.11.1
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
104 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
105 - curl -s -O https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$GPGME_VERSION.tar.bz2
6484
a268ddbee412 Remove verbose from unpack of gpgme. Clean up log.
John Rouillard <rouilj@ieee.org>
parents: 6482
diff changeset
106 - tar -jxf gpgme-$GPGME_VERSION.tar.bz2
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
107 - cd gpgme-$GPGME_VERSION
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
108 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
109 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
110
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
111 # change back to the checked out repository directory
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
112 - cd $TRAVIS_BUILD_DIR
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
113
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
114 install:
5921
50ac0d3c50b9 support python 3.4 testing
John Rouillard <rouilj@ieee.org>
parents: 5920
diff changeset
115 - if [[ $TRAVIS_PYTHON_VERSION == "3.4"* ]]; then pip install mysqlclient==1.3.14; fi
50ac0d3c50b9 support python 3.4 testing
John Rouillard <rouilj@ieee.org>
parents: 5920
diff changeset
116 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install mysqlclient; fi
5751
5cb6e6b594b0 issue2551040: New release of psycopg2 drops support for psycopg1
John Rouillard <rouilj@ieee.org>
parents: 5716
diff changeset
117 - pip install psycopg2
6383
e9760702bf0c Add live server test to suite.
John Rouillard <rouilj@ieee.org>
parents: 6313
diff changeset
118 - pip install gpg pytz whoosh pyjwt requests
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
119 - pip install pytest-cov codecov
6095
3ada6a3f48e1 fixed ReStructuredText encoding with Python 3
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5935
diff changeset
120 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install docutils; fi
6099
55c56ceacb8e escape HTML tags in markdown content
Christof Meerwald <cmeerw@cmeerw.org>
parents: 6097
diff changeset
121 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install mistune; fi
6101
cb6df89af1c8 updated version check for Markdown install
Christof Meerwald <cmeerw@cmeerw.org>
parents: 6099
diff changeset
122 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* && $TRAVIS_PYTHON_VERSION != "2."* ]]; then pip install Markdown; fi
6097
90a1470edbea added markdown rendering support using either markdown2 or markdown
Christof Meerwald <cmeerw@cmeerw.org>
parents: 6095
diff changeset
123 - pip install markdown2
6458
8f1b91756457 issue2551147 - Enable compression of http responses in roundup.
John Rouillard <rouilj@ieee.org>
parents: 6449
diff changeset
124 - pip install brotli zstd
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
125
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
126 before_script:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
127 # set up mysql database
5641
1601968f01a1 Remove other python versions to reduce cycle time while trying to fix
John Rouillard <rouilj@ieee.org>
parents: 5640
diff changeset
128 - sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
5640
a82c56a9c2a2 trying to fix OperationalError(2006) problem in travis
John Rouillard <rouilj@ieee.org>
parents: 5514
diff changeset
129 - cat /etc/mysql/my.cnf
5641
1601968f01a1 Remove other python versions to reduce cycle time while trying to fix
John Rouillard <rouilj@ieee.org>
parents: 5640
diff changeset
130 - sudo service mysql restart
5642
bd681700e556 Move mysql grant after the manipulation on the db. This verifies the
John Rouillard <rouilj@ieee.org>
parents: 5641
diff changeset
131 - mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
132
5784
78de5419a0ec service name of postgresql not postgres??
John Rouillard <rouilj@ieee.org>
parents: 5783
diff changeset
133 - sudo service postgresql restart; sleep 30
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
134 # set up postgresql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
135 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
136
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
137 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
138 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
139 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
140
6480
0f0cee081990 Force test of a locale
John Rouillard <rouilj@ieee.org>
parents: 6458
diff changeset
141 # build the .mo translation files and install them into a tree
0f0cee081990 Force test of a locale
John Rouillard <rouilj@ieee.org>
parents: 6458
diff changeset
142 # (locale/locale under roundup directory root)
0f0cee081990 Force test of a locale
John Rouillard <rouilj@ieee.org>
parents: 6458
diff changeset
143 # suitable for use by gettext.
6485
685778e0a122 Only list one local locale file. Clean up log.
John Rouillard <rouilj@ieee.org>
parents: 6484
diff changeset
144 - (cd locale; make local_install; ls -lR locale/de/LC_MESSAGES)
6480
0f0cee081990 Force test of a locale
John Rouillard <rouilj@ieee.org>
parents: 6458
diff changeset
145
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
146 script:
5500
3c61c771c8fb set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5499
diff changeset
147 - PATH=$VIRTUAL_ENV/bin:$PATH
3c61c771c8fb set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5499
diff changeset
148 - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
6496
13d9c0833b55 Disable wrning tests for python2.
John Rouillard <rouilj@ieee.org>
parents: 6495
diff changeset
149 - [[ $TRAVIS_PYTHON_VERSION != "2."* ]] && py.test
6494
51a6f0b1bfdd Reset -W to default from error. Exit after 20 failures. Only
John Rouillard <rouilj@ieee.org>
parents: 6491
diff changeset
150 -W default
6482
0fa6c31f3abe Trying to fix test invocation split acros multiple lines.
John Rouillard <rouilj@ieee.org>
parents: 6481
diff changeset
151 -W "ignore:SelectableGroups:DeprecationWarning"
6481
59b128beb016 Trying to fix test invocation split acros multiple lines.
John Rouillard <rouilj@ieee.org>
parents: 6480
diff changeset
152 -W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15"
59b128beb016 Trying to fix test invocation split acros multiple lines.
John Rouillard <rouilj@ieee.org>
parents: 6480
diff changeset
153 -W "ignore:'U' mode::docutils.io"
6489
1f4ac7ba7a08 ignore unclosed socket for roundup.demo
John Rouillard <rouilj@ieee.org>
parents: 6488
diff changeset
154 -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo"
6490
47a7fc39eaf0 Ignore error raised from enum
John Rouillard <rouilj@ieee.org>
parents: 6489
diff changeset
155 -W "ignore:unclosed file:ResourceWarning:enum"
6494
51a6f0b1bfdd Reset -W to default from error. Exit after 20 failures. Only
John Rouillard <rouilj@ieee.org>
parents: 6491
diff changeset
156 -v --maxfail=20 test/ --cov=roundup
6496
13d9c0833b55 Disable wrning tests for python2.
John Rouillard <rouilj@ieee.org>
parents: 6495
diff changeset
157 - [[ $TRAVIS_PYTHON_VERSION == "2."* ]] && py.test
13d9c0833b55 Disable wrning tests for python2.
John Rouillard <rouilj@ieee.org>
parents: 6495
diff changeset
158 -v --maxfail=20 test/ --cov=roundup
13d9c0833b55 Disable wrning tests for python2.
John Rouillard <rouilj@ieee.org>
parents: 6495
diff changeset
159
5919
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
160 after_success:
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
161 - codecov

Roundup Issue Tracker: http://roundup-tracker.org/