Mercurial > p > roundup > code
annotate .travis.yml @ 6681:ab2ed11c021e
issue2551205: Add support for specifying valid origins for api: xmlrpc/rest
We now have an allow list to filter the hosts allowed to do api
requests. An element of this allow list must match the http ORIGIN
header exactly or the rest/xmlrpc CORS request will result in an
error.
The tracker host is always allowed to do a request.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 17 May 2022 17:18:51 -0400 |
| parents | 8e834d29e0e1 |
| children | 4441e94ac894 |
| rev | line source |
|---|---|
|
6501
89c4fb277a49
Add link to syntax checker.
John Rouillard <rouilj@ieee.org>
parents:
6499
diff
changeset
|
1 # check syntax using: |
|
89c4fb277a49
Add link to syntax checker.
John Rouillard <rouilj@ieee.org>
parents:
6499
diff
changeset
|
2 # https://config.travis-ci.com/explore |
|
89c4fb277a49
Add link to syntax checker.
John Rouillard <rouilj@ieee.org>
parents:
6499
diff
changeset
|
3 |
|
6217
10d7700ff6ad
Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents:
6101
diff
changeset
|
4 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
|
5 |
| 5003 | 6 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
|
7 |
|
5935
f18f12d6ce9a
Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents:
5932
diff
changeset
|
8 cache: pip |
|
f18f12d6ce9a
Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents:
5932
diff
changeset
|
9 |
|
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
|
10 #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
|
11 #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
|
12 # 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
|
13 # 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
|
14 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
|
15 # 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
|
16 # - 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
|
17 # - 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
|
18 |
|
6637
e657826186c6
Fix warning in config; sphinx head works with all 3.x
John Rouillard <rouilj@ieee.org>
parents:
6636
diff
changeset
|
19 dist: focal |
|
5781
6d750ae6efe5
Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents:
5780
diff
changeset
|
20 |
| 6540 | 21 # - pypy3 |
|
6503
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
22 python: |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
23 - 2.7 |
|
6639
9f3fe52b7a2e
3.10.4 is supposed to be available as newest 3.10 release.
John Rouillard <rouilj@ieee.org>
parents:
6637
diff
changeset
|
24 - 3.10.4 |
|
6537
1ce082ea7f48
Add testing for pypy3 and 3.9 released replaces 3.9-dev.
John Rouillard <rouilj@ieee.org>
parents:
6533
diff
changeset
|
25 - 3.9 |
|
6503
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
26 - 3.8 |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
27 - 3.6 |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
28 - nightly |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
29 |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
30 services: |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
31 - mysql |
|
4c7381f5051b
Enable bionic build replacing xenail
John Rouillard <rouilj@ieee.org>
parents:
6501
diff
changeset
|
32 - postgresql |
|
6449
335c826cc089
Setup for moving to use bionic 18.04 ubuntu from 16.04
John Rouillard <rouilj@ieee.org>
parents:
6383
diff
changeset
|
33 |
|
6217
10d7700ff6ad
Fix errors in spec: add os, no sudo, rename matrix to jobs/fix
John Rouillard <rouilj@ieee.org>
parents:
6101
diff
changeset
|
34 jobs: |
|
5917
3a6114d377f4
issue2551025: try handling operational error exception in close
John Rouillard <rouilj@ieee.org>
parents:
5916
diff
changeset
|
35 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
|
36 - python: nightly |
|
6537
1ce082ea7f48
Add testing for pypy3 and 3.9 released replaces 3.9-dev.
John Rouillard <rouilj@ieee.org>
parents:
6533
diff
changeset
|
37 - python: pypy3 |
| 5003 | 38 |
| 39 addons: | |
| 40 apt: | |
|
6597
20632fdee6da
try focal upgrade again. mysql user creation/grant updated
John Rouillard <rouilj@ieee.org>
parents:
6596
diff
changeset
|
41 #sources: |
|
20632fdee6da
try focal upgrade again. mysql user creation/grant updated
John Rouillard <rouilj@ieee.org>
parents:
6596
diff
changeset
|
42 # - sourceline: ppa:xapian-backports/ppa |
|
5375
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
43 |
| 5003 | 44 packages: |
|
5375
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
45 # 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
|
46 - libxapian-dev |
|
5494
b7fa56ced601
use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5482
diff
changeset
|
47 # Required to install gpg |
| 5003 | 48 - swig |
|
5499
a801eb13ab94
Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents:
5498
diff
changeset
|
49 # Required to build gpgme. |
|
a801eb13ab94
Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents:
5498
diff
changeset
|
50 - gpgsm |
| 5003 | 51 |
| 52 before_install: | |
|
6636
c347cb2adf5d
Nightly not installing sphinx, print TRAVIS_PYTHON_VERSION
John Rouillard <rouilj@ieee.org>
parents:
6635
diff
changeset
|
53 - echo "$TRAVIS_PYTHON_VERSION" |
|
6634
56c21a20d313
Fix build envionment error due to changes in jinja/xapian versions.
John Rouillard <rouilj@ieee.org>
parents:
6633
diff
changeset
|
54 # Sphinx required to build the xapian python bindings. Use 1.8.5 on |
|
56c21a20d313
Fix build envionment error due to changes in jinja/xapian versions.
John Rouillard <rouilj@ieee.org>
parents:
6633
diff
changeset
|
55 # older python and newest on newer. |
|
56c21a20d313
Fix build envionment error due to changes in jinja/xapian versions.
John Rouillard <rouilj@ieee.org>
parents:
6633
diff
changeset
|
56 - if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi |
|
6637
e657826186c6
Fix warning in config; sphinx head works with all 3.x
John Rouillard <rouilj@ieee.org>
parents:
6636
diff
changeset
|
57 - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi |
|
6636
c347cb2adf5d
Nightly not installing sphinx, print TRAVIS_PYTHON_VERSION
John Rouillard <rouilj@ieee.org>
parents:
6635
diff
changeset
|
58 - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then pip install sphinx; fi |
|
5375
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
59 - XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1) |
| 5003 | 60 - cd /tmp |
|
5375
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
61 - 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
|
62 - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz |
|
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
63 - 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
|
64 - echo $TRAVIS_PYTHON_VERSION |
|
5375
1ad46057ae4a
Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents:
5373
diff
changeset
|
65 - 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
|
66 - 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
|
67 - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi |
|
6538
28fa3798ca3d
Fix some TRAVIS_PYTHON_VERSION staments to cover pypy3 version.
John Rouillard <rouilj@ieee.org>
parents:
6537
diff
changeset
|
68 - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; 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
|
69 - make && make install |
| 5003 | 70 |
|
5496
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
71 - PATH=$VIRTUAL_ENV/bin:$PATH |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
72 |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
73 # libgpg-error |
| 6540 | 74 - LIBGPG_ERROR_VERSION=1.43 |
|
5496
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
75 - cd /tmp |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
76 - 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
|
77 - 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
|
78 - 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
|
79 - ./configure --prefix=$VIRTUAL_ENV |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
80 - make && make install |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
81 |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
82 # libassuan |
| 6540 | 83 - LIBASSUAN_VERSION=2.5.5 |
|
5496
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
84 - cd /tmp |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
85 - 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
|
86 - 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
|
87 - cd libassuan-$LIBASSUAN_VERSION |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
88 - ./configure --prefix=$VIRTUAL_ENV |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
89 - make && make install |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
90 |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
91 # gpgme |
| 6540 | 92 - GPGME_VERSION=1.16.0 |
|
5496
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
93 - cd /tmp |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
94 - 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
|
95 - 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
|
96 - cd gpgme-$GPGME_VERSION |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
97 - ./configure --prefix=$VIRTUAL_ENV |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
98 - make && make install |
|
5dc0214d7572
attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5495
diff
changeset
|
99 |
| 5003 | 100 # change back to the checked out repository directory |
| 101 - cd $TRAVIS_BUILD_DIR | |
| 102 | |
| 103 install: | |
|
5921
50ac0d3c50b9
support python 3.4 testing
John Rouillard <rouilj@ieee.org>
parents:
5920
diff
changeset
|
104 - 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
|
105 - 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
|
106 - pip install psycopg2 |
|
6383
e9760702bf0c
Add live server test to suite.
John Rouillard <rouilj@ieee.org>
parents:
6313
diff
changeset
|
107 - pip install gpg pytz whoosh pyjwt requests |
|
5060
de420f34d696
Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents:
5059
diff
changeset
|
108 - pip install pytest-cov codecov |
|
6671
8e834d29e0e1
Add pip install of beautifulsoup4.
John Rouillard <rouilj@ieee.org>
parents:
6639
diff
changeset
|
109 - pip install beautifulsoup4 |
|
6095
3ada6a3f48e1
fixed ReStructuredText encoding with Python 3
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5935
diff
changeset
|
110 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install docutils; fi |
|
6598
27a4ab499189
mistune 2 has been released so pin mistune to older 0.8.4 until we adopt 2.0 and remove include directive.
John Rouillard <rouilj@ieee.org>
parents:
6597
diff
changeset
|
111 - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install mistune==0.8.4; fi |
|
6549
5ce92594cb27
Markdown 3.3.6 available does is fix the failure with 3.3.5?
John Rouillard <rouilj@ieee.org>
parents:
6540
diff
changeset
|
112 - 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
|
113 - pip install markdown2 |
|
6624
19897a7ef409
If install of zstd fails, don't abort the test run.
John Rouillard <rouilj@ieee.org>
parents:
6617
diff
changeset
|
114 - pip install brotli |
|
19897a7ef409
If install of zstd fails, don't abort the test run.
John Rouillard <rouilj@ieee.org>
parents:
6617
diff
changeset
|
115 # zstd fails to build under python nightly aborting test. |
|
19897a7ef409
If install of zstd fails, don't abort the test run.
John Rouillard <rouilj@ieee.org>
parents:
6617
diff
changeset
|
116 # allow testing to still happen if the optional package doesn't install. |
|
6625
a67692d50ede
ignore zstd build failure trial 2.
John Rouillard <rouilj@ieee.org>
parents:
6624
diff
changeset
|
117 - pip install zstd || true |
| 5003 | 118 |
| 119 before_script: | |
| 120 # 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
|
121 - 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
|
122 - 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
|
123 - sudo service mysql restart |
|
6597
20632fdee6da
try focal upgrade again. mysql user creation/grant updated
John Rouillard <rouilj@ieee.org>
parents:
6596
diff
changeset
|
124 - mysql -u root -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' |
| 5003 | 125 |
|
6614
e9dc8e526dd0
Remove fix for old mysql bug; try to improve postgresql perf
John Rouillard <rouilj@ieee.org>
parents:
6598
diff
changeset
|
126 # Disable fsync for speed, don't care about data durability when testing |
|
6615
36ccdf0eff8d
Fix posgresql.conf change command. need sudo.
John Rouillard <rouilj@ieee.org>
parents:
6614
diff
changeset
|
127 - sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf |
|
5784
78de5419a0ec
service name of postgresql not postgres??
John Rouillard <rouilj@ieee.org>
parents:
5783
diff
changeset
|
128 - sudo service postgresql restart; sleep 30 |
| 5003 | 129 # set up postgresql database |
| 130 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres | |
| 131 | |
|
6616
b8e74fd34f97
Reinstall workaround for mysql bug.
John Rouillard <rouilj@ieee.org>
parents:
6615
diff
changeset
|
132 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901 |
|
b8e74fd34f97
Reinstall workaround for mysql bug.
John Rouillard <rouilj@ieee.org>
parents:
6615
diff
changeset
|
133 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars |
|
6617
bae541e5fb26
Fix change to mysql COLLATION command
John Rouillard <rouilj@ieee.org>
parents:
6616
diff
changeset
|
134 # plus others. Otherwise we get: |
|
bae541e5fb26
Fix change to mysql COLLATION command
John Rouillard <rouilj@ieee.org>
parents:
6616
diff
changeset
|
135 # COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4' |
|
bae541e5fb26
Fix change to mysql COLLATION command
John Rouillard <rouilj@ieee.org>
parents:
6616
diff
changeset
|
136 - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py |
|
6616
b8e74fd34f97
Reinstall workaround for mysql bug.
John Rouillard <rouilj@ieee.org>
parents:
6615
diff
changeset
|
137 |
| 6480 | 138 # build the .mo translation files and install them into a tree |
| 139 # (locale/locale under roundup directory root) | |
| 140 # 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
|
141 - (cd locale; make local_install; ls -lR locale/de/LC_MESSAGES) |
| 6480 | 142 |
| 5003 | 143 script: |
|
5500
3c61c771c8fb
set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5499
diff
changeset
|
144 - PATH=$VIRTUAL_ENV/bin:$PATH |
|
3c61c771c8fb
set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents:
5499
diff
changeset
|
145 - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH |
| 6499 | 146 - if [[ "$TRAVIS_PYTHON_VERSION" != "2."* ]]; then |
| 147 py.test | |
| 148 -W default | |
| 149 -W "ignore:SelectableGroups:DeprecationWarning" | |
| 150 -W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15" | |
| 151 -W "ignore:'U' mode::docutils.io" | |
| 152 -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" | |
| 153 -W "ignore:unclosed file:ResourceWarning:enum" | |
| 154 -v --maxfail=20 test/ --cov=roundup; | |
| 155 fi | |
| 156 - if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then | |
| 157 py.test -v --maxfail=20 test/ --cov=roundup; | |
| 158 fi | |
|
6615
36ccdf0eff8d
Fix posgresql.conf change command. need sudo.
John Rouillard <rouilj@ieee.org>
parents:
6614
diff
changeset
|
159 - ./setup.py build_doc |
|
6496
13d9c0833b55
Disable wrning tests for python2.
John Rouillard <rouilj@ieee.org>
parents:
6495
diff
changeset
|
160 |
|
5919
d789c28db503
issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents:
5918
diff
changeset
|
161 after_success: |
|
d789c28db503
issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents:
5918
diff
changeset
|
162 - codecov |
