annotate .travis.yml @ 5973:fe334430ca07

issue2550919 - Anti-bot signup using 4 second delay Took the code by erik forsberg and massaged it into the core. So this is no longer needed in the tracker. Updated devel and responsive trackers to remove timestamp.py and update input field name. Docs, changes and tests complete. Hopefully these tracker changes won't cause an issue for other tests.
author John Rouillard <rouilj@ieee.org>
date Sat, 09 Nov 2019 00:30:37 -0500
parents f18f12d6ce9a
children 3ada6a3f48e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
1 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
2
5935
f18f12d6ce9a Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents: 5932
diff changeset
3 cache: pip
f18f12d6ce9a Enable pip caching in travis. Try to get the build times down.
John Rouillard <rouilj@ieee.org>
parents: 5932
diff changeset
4
5780
307a051e314e Reset to known good state. Leave commented out trial to get 3.7
John Rouillard <rouilj@ieee.org>
parents: 5779
diff changeset
5 python:
5796
02f797052698 Try to allow 3.7 failures to not break the build.
John Rouillard <rouilj@ieee.org>
parents: 5791
diff changeset
6 - 2.7
5919
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
7 - 3.4
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
8 - 3.5
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
9 - 3.6
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
10 - 3.7
5932
df279b4e34a5 Run travis on 3.8 now that it's released.
John Rouillard <rouilj@ieee.org>
parents: 5922
diff changeset
11 - 3.8
5922
bc81dbecab0f Don't use nightly python release.
John Rouillard <rouilj@ieee.org>
parents: 5921
diff changeset
12 # - 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
13
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
14 #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
15 #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
16 # 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
17 # 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
18 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
19 # 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
20 # - 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
21 # - 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
22
5781
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
23 dist:
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
24 - xenial
6d750ae6efe5 Try implementing tests in 2.7 , 3.4...3.7 python.
John Rouillard <rouilj@ieee.org>
parents: 5780
diff changeset
25
5796
02f797052698 Try to allow 3.7 failures to not break the build.
John Rouillard <rouilj@ieee.org>
parents: 5791
diff changeset
26 matrix:
5917
3a6114d377f4 issue2551025: try handling operational error exception in close
John Rouillard <rouilj@ieee.org>
parents: 5916
diff changeset
27 allow_failures: # nightly not ready for prime time yet.
5932
df279b4e34a5 Run travis on 3.8 now that it's released.
John Rouillard <rouilj@ieee.org>
parents: 5922
diff changeset
28 - 3.8
5917
3a6114d377f4 issue2551025: try handling operational error exception in close
John Rouillard <rouilj@ieee.org>
parents: 5916
diff changeset
29 - nightly
5796
02f797052698 Try to allow 3.7 failures to not break the build.
John Rouillard <rouilj@ieee.org>
parents: 5791
diff changeset
30
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
31 sudo: false
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
32
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
33 addons:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
34 apt:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
35 sources:
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
36 - sourceline: ppa:xapian-backports/ppa
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
37
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
38 packages:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
39 # 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
40 - libxapian-dev
5494
b7fa56ced601 use gpg module instead of pyme module for PGP encryption
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5482
diff changeset
41 # Required to install gpg
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
42 - swig
5499
a801eb13ab94 Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5498
diff changeset
43 # Required to build gpgme.
a801eb13ab94 Install gpgsm in .travis.yml for building gpgme.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5498
diff changeset
44 - gpgsm
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
45
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
46 before_install:
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
47 # 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
48 - pip install sphinx==1.8.5
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
49 - 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
50 - cd /tmp
5375
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
51 - 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
52 - tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
53 - cd xapian-bindings-$XAPIAN_VER/
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
54 - 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
55 - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python3; fi
1ad46057ae4a Test against latest version of Xapian
John Kristensen <john@jerrykan.com>
parents: 5373
diff changeset
56 - make && make install
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
57
5496
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
58 - PATH=$VIRTUAL_ENV/bin:$PATH
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
59
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
60 # libgpg-error
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
61 - LIBGPG_ERROR_VERSION=1.32
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
62 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
63 - 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
64 - 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
65 - 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
66 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
67 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
68
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
69 # libassuan
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
70 - LIBASSUAN_VERSION=2.5.1
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
71 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
72 - 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
73 - 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
74 - cd libassuan-$LIBASSUAN_VERSION
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
75 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
76 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
77
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
78 # gpgme
5498
d7e0ab368692 Set GPGME_VERSION in .travis.yml.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5497
diff changeset
79 - 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
80 - cd /tmp
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
81 - curl -s -O https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$GPGME_VERSION.tar.bz2
5497
f7330c11b771 Fix tar commands in .travis.yml.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5496
diff changeset
82 - tar -jxvf 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
83 - cd gpgme-$GPGME_VERSION
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
84 - ./configure --prefix=$VIRTUAL_ENV
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
85 - make && make install
5dc0214d7572 attempt to compile gpgme and dependencies for travis-ci
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5495
diff changeset
86
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
87 # change back to the checked out repository directory
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
88 - cd $TRAVIS_BUILD_DIR
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
89
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
90 install:
5921
50ac0d3c50b9 support python 3.4 testing
John Rouillard <rouilj@ieee.org>
parents: 5920
diff changeset
91 - 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
92 - 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
93 - pip install psycopg2
5878
1b57d8f3eb97 Add rudimentery experiment JSON Web Token (jwt) support
John Rouillard <rouilj@ieee.org>
parents: 5816
diff changeset
94 - pip install gpg pytz whoosh pyjwt
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
95 - pip install pytest-cov codecov
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
96
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
97 before_script:
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
98 # 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
99 - 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
100 - 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
101 - 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
102 - 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
103
5784
78de5419a0ec service name of postgresql not postgres??
John Rouillard <rouilj@ieee.org>
parents: 5783
diff changeset
104 - sudo service postgresql restart; sleep 30
5003
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
105 # set up postgresql database
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
106 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
107
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
108 # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
109 # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
110 - 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
111
a9e0ef739241 Add .travis.yml
John Kristensen <john@jerrykan.com>
parents:
diff changeset
112 script:
5500
3c61c771c8fb set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5499
diff changeset
113 - PATH=$VIRTUAL_ENV/bin:$PATH
3c61c771c8fb set PATH and LD_LIBRARY_PATH for tests
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5499
diff changeset
114 - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
5919
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
115 - py.test -v test/ --cov=roundup
5918
10fb641f5152 issue2551025: try handling operational error exception in close #2
John Rouillard <rouilj@ieee.org>
parents: 5917
diff changeset
116
5060
de420f34d696 Add codecov support to TravisCI
John Kristensen <john@jerrykan.com>
parents: 5059
diff changeset
117
5919
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
118 after_success:
d789c28db503 issue2551025: try handling operational error exception in close #3
John Rouillard <rouilj@ieee.org>
parents: 5918
diff changeset
119 - codecov

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