Compare commits

...

50 Commits

Author SHA1 Message Date
Brad Warren
22a4be824b right branch and quiet 2019-01-25 09:19:39 -08:00
Brad Warren
7277c8b0cb Merge pull request #6651 from certbot/update-test-everything2
First, this PR merges master into the test-everything branch to resolve test failures created by #6597 and #6647.

Second, installing packages through Homebrew started failing. I fixed this by making use of the Homebrew options in .travis.yml which didn't exist when our current Homebrew scripts were written.

A summary of the changes there are:

I removed tests/travis-macos-setup.sh (which only existed in the test-everything branch).
I switched the packages installed by Homebrew to only install what's actually needed by the test.
I started being explicit about the Python version we wanted because Homebrew has flipped back and forth on what the python package refers to.
We stop calling brew link python. I think this is OK because brew link <package> just makes the package available in your PATH but we can see this is already the case with Python because the tests are using 2.7.15 which is available through Homebrew but not macOS.
2019-01-09 16:30:27 -08:00
Brad Warren
52c42b6927 Install homebrew packages through .travis.yml. 2019-01-09 15:08:47 -08:00
Brad Warren
5569b1ce19 Merge branch 'master' into update-test-everything2 2019-01-09 12:41:44 -08:00
Brad Warren
000fc0b751 Merge pull request #6498 from certbot/fix-merge-conflicts
Fix merge conflicts in test-everything
2018-11-19 16:21:45 -08:00
Brad Warren
9fd4bf3dfa Merge branch 'master' into fix-merge-conflicts 2018-11-13 10:43:23 -08:00
Brad Warren
5e9a5e4daa Fix macOS tests (#6437)
* Don't try to install installed packages.

* Test with any version of python3 on macOS.

* move file and fix mode

* ignore stderr too

* remove extra set -e

* no linux failures
2018-10-23 10:20:53 +03:00
Brad Warren
c99688f175 Merge pull request #6410 from certbot/resolve-merge-conflicts-in-test-everything
Resolve merge conflicts in test everything
2018-10-10 09:48:20 -07:00
Brad Warren
b995c8318d Merge branch 'master' into resolve-merge-conflicts-in-test-everything 2018-10-09 16:07:42 -07:00
Brad Warren
0f1dbb7943 Merge pull request #6326 from certbot/separate-test-everything
Separate integration tests in test-everything
2018-08-29 14:50:17 -07:00
Brad Warren
13b35db798 Merge branch 'master' into separate-test-everything 2018-08-29 14:15:24 -07:00
ohemorange
3a90142de5 Merge pull request #6275 from certbot/merge-master-into-test-everything
Merge master into test everything
2018-07-31 17:42:13 -07:00
Brad Warren
3f113009bf Merge branch 'master' into merge-master-into-test-everything 2018-07-31 17:06:53 -07:00
Brad Warren
5726d32d8a Merge pull request #6274 from certbot/merge-master-into-test-everything
Merge master into test everything
2018-07-31 11:15:15 -07:00
Brad Warren
b28380f7b2 Merge branch 'master' into merge-master-into-test-everything 2018-07-31 10:33:34 -07:00
Brad Warren
24bb28186f Merge pull request #6235 from certbot/merge-test-everything
Merge master into test everything
2018-07-18 08:10:43 -07:00
Brad Warren
ebfa0d9beb fix bad merge 2018-07-17 20:05:40 -07:00
Brad Warren
da897172b9 Merge branch 'master' into merge-test-everything 2018-07-17 20:01:21 -07:00
Brad Warren
6eca187b19 Merge branch 'master' into merge-test-everything 2018-07-17 15:38:52 -07:00
Joona Hoikkala
a4ac806144 Merge pull request #6181 from certbot/py37-test-everything
Handle merge conflicts and add Python 3.7 integration tests
2018-07-06 22:48:17 +03:00
Brad Warren
8558abc01d Add Python 3.7 integration tests. 2018-07-06 09:20:04 -07:00
Brad Warren
edfa6fd459 Merge branch 'master' into py37-test-everythoing 2018-07-06 09:19:36 -07:00
Joona Hoikkala
3414bb6361 Merge pull request #6171 from certbot/python37-test-everything
Use Python 3.7 for Python 3 macOS tests.
2018-07-06 19:07:44 +03:00
Brad Warren
a73a8de256 Merge branch 'master' into python37-test-everything 2018-07-05 08:48:23 -07:00
Brad Warren
142efc9458 Use Python 3.7 for Python 3 macOS tests. 2018-07-02 16:25:20 -07:00
Brad Warren
0cee44f590 Merge pull request #6039 from certbot/handle-merge-conflicts
Pull .travis.yml changes into test-everything
2018-05-29 13:49:00 -07:00
Brad Warren
93d85920b9 Merge branch 'master' into handle-merge-conflicts 2018-05-25 08:15:23 -07:00
ohemorange
681d36d1d6 Merge pull request #5926 from certbot/update-test-everything
Add 2nd mypy test to test-everything
2018-05-04 14:22:59 -07:00
Brad Warren
71c7f09327 Merge branch 'master' into update-test-everything 2018-05-04 12:42:26 -07:00
ohemorange
6d82061b42 Merge pull request #5880 from certbot/mypy-everything
Merge master into test-everything
2018-04-16 23:51:40 -07:00
Brad Warren
a4a8b6e994 Merge branch 'master' into mypy-everything 2018-04-16 08:44:40 -07:00
ohemorange
9defbc3aed Add before_install to all tests running on test-everything (#5806)
* add before_install to all tests running on test-everything

* actually always run before_install

* also don't override addons

* only install libaugeas0 for docker_dev
2018-03-29 17:18:15 -07:00
Brad Warren
f1461946b8 Merge pull request #5688 from certbot/update-test-everything
Update the test-everything branch
2018-03-11 15:45:14 -07:00
Brad Warren
b7472fb337 Merge branch 'master' into update-test-everything 2018-03-08 11:30:09 -08:00
Brad Warren
937e27db28 Merge branch 'master' into update-test-everything 2018-03-07 15:57:07 -08:00
Brad Warren
e64137fb53 Merge pull request #5668 from certbot/update-test-everything
Fix merge conflicts and add more ACMEv2 integration tests
2018-03-06 09:19:25 -08:00
Brad Warren
a0dc7dafda add python3 ACMEv2 integration tests 2018-03-05 12:02:05 -08:00
Brad Warren
02975c84d9 set up nginx-oldest integration tests 2018-03-05 12:01:26 -08:00
Brad Warren
5307600a03 use v1 for clarity 2018-03-05 12:00:44 -08:00
Brad Warren
b0ce7529aa Merge branch 'master' into update-test-everything 2018-03-05 12:00:07 -08:00
Joona Hoikkala
5abec9fa3c Python3 now installed as default let's upgrade instead of trying to install (#5665) 2018-03-05 10:01:46 -08:00
Brad Warren
8753959bb3 Merge pull request #5645 from certbot/update-test-everything
Update the test-everything branch
2018-03-02 11:17:01 -08:00
Brad Warren
184b384b58 Merge branch 'master' into update-test-everything 2018-03-01 10:21:55 -08:00
Brad Warren
13b6b3f1b3 Merge pull request #5401 from certbot/fix-everything
Fix test-everything
2018-01-09 18:33:13 -08:00
Brad Warren
f4a1547481 Merge branch 'master' into fix-everything 2018-01-09 17:33:17 -08:00
Brad Warren
164121fc15 Revert "Update test-everything (#5397)"
This reverts commit 349643c9b8.
2018-01-09 17:32:07 -08:00
Brad Warren
349643c9b8 Update test-everything (#5397)
* Use josepy instead of acme.jose. (#5203)

* Parse variables without whitespace separator correctly in CentOS family of distributions (#5318)

* Pin josepy in letsencrypt-auto (#5321)

* pin josepy in le-auto

* Put pinned versions in sorted order

* Pin dependencies in oldest tests (#5316)

* Add tools/merge_requirements.py

* Revert "Fix oldest tests by pinning Google DNS deps (#5000)"

This reverts commit f68fba2be2.

* Add tools/oldest_constraints.txt

* Remove oldest constraints from tox.ini

* Rename dev constraints file

* Update tools/pip_install.sh

* Update install_and_test.sh

* Fix pip_install.sh

* Don't cat when you can cp

* Add ng-httpsclient to dev constraints for oldest tests

* Bump tested setuptools version

* Update dev_constraints comment

* Better document oldest dependencies

* test against oldest versions we say we require

* Update dev constraints

* Properly handle empty lines

* Update constraints gen in pip_install

* Remove duplicated zope.component

* Reduce pyasn1-modules dependency

* Remove blank line

* pin back google-api-python-client

* pin back uritemplate

* pin josepy for oldest tests

* Undo changes to install_and_test.sh

* Update install_and_test.sh description

* use split instead of partition

* More pip dependency resolution workarounds (#5339)

* remove pyopenssl and six deps

* remove outdated tox.ini dep requirement

* Fix auto_tests on systems with new bootstrappers (#5348)

* Fix pytest on macOS in Travis (#5360)

* Add tools/pytest.sh

* pass TRAVIS through in tox.ini

* Use tools/pytest.sh to run pytest

* Add quiet to pytest.ini

* ignore pytest cache

* print as a string (#5359)

* Use apache2ctl modules for Gentoo systems. (#5349)

* Do not call Apache binary for module reset in cleanup()

* Use apache2ctl modules for Gentoo

* Broader git ignore for pytest cache files (#5361)

Make gitignore take pytest cache directories in to account, even if
they reside in subdirectories.

If pytest is run for a certain module, ie. `pytest certbot-apache` the
cache directory is created under `certbot-apache` directory.

* Fix letsencrypt-auto name and long forms of -n (#5375)

* Deprecate Python2.6 by using Python3 on CentOS/RHEL 6 (#5329)

* If there's no python or there's only python2.6 on red hat systems, install python3

* Always check for python2.6

* address style, documentation, nits

* factor out all initialization code

* fix up python version return value when no python installed

* add no python error and exit

* document DeterminePythonVersion parameters

* build letsencrypt-auto

* close brace

* build leauto

* fix syntax errors

* set USE_PYTHON_3 for all cases

* rip out NOCRASH

* replace NOCRASH, update LE_PYTHON set logic

* use built-in venv for py3

* switch to LE_PYTHON not affecting bootstrap selection and not overwriting LE_PYTHON

* python3ify fetch.py

* get fetch.py working with python2 and 3

* don't verify server certificates in fetch.py HttpsGetter

* Use SSLContext and an environment variable so that our tests continue to never verify server certificates.

* typo

* build

* remove commented out code

* address review comments

* add documentation for YES_FLAG and QUIET_FLAG

* Add tests to centos6 Dockerfile to make sure we install python3 if and only if appropriate to do so.

* Allow non-interactive revocation without deleting certificates (#5386)

* Add --delete-after-revoke flags

* Use delete_after_revoke value

* Add delete_after_revoke unit tests

* Add integration tests for delete-after-revoke.

* Have letsencrypt-auto do a real upgrade in leauto-upgrades option 2 (#5390)

* Make leauto_upgrades do a real upgrade

* Cleanup vars and output

* Sleep until the server is ready

* add simple_http_server.py

* Use a randomly assigned port

* s/realpath/readlink

* wait for server before getting port

* s/localhost/all interfaces

* update Apache ciphersuites (#5383)

* Fix macOS builds for Python2.7 in Travis (#5378)

* Add OSX Python2 tests

* Make sure python2 is originating from homebrew on macOS

* Upgrade the already installed python2 instead of trying to reinstall
2018-01-09 17:24:14 -08:00
Brad Warren
899b56514a Merge pull request #5315 from certbot/update-test-everything
Update the test everything branch
2017-12-08 17:48:21 -08:00
Brad Warren
fa3bc6d774 Merge branch 'master' into test-everything 2017-12-08 16:37:28 -08:00
Jacob Hoffman-Andrews
76f5f590ea Add back macOS and Boulder for test-everything.
This commit should not be merged to master (if that happens, just revert it).

In https://github.com/certbot/certbot/pull/5270, we removed the macOS and
most Boulder integration tests from .travis.yml because they made builds very
slow. We still want to run those tests nightly, though. The test-everything
branch will have the tests that are too expensive to run for every PR.
2017-12-01 16:12:44 -08:00

View File

@@ -5,7 +5,13 @@ cache:
- $HOME/.cache/pip
before_install:
- '([ $TRAVIS_OS_NAME == linux ] && dpkg -s libaugeas0) || (brew update && brew install augeas python3 && brew upgrade python && brew link python)'
# In the test-everything branch, we merge master before running tests.
# This is because we want test-everything to test the code in master nightly
# in a Travis cron, but with a different set of tests than master has
# in .travis.yml.
- cp .travis.yml /tmp/travis.yml
- git pull origin 0.30.x-update-setuptools --strategy=recursive --strategy-option=theirs --no-edit
- if ! git diff .travis.yml /tmp/travis.yml ; then echo "Please merge master into test-everything"; exit 1; fi
before_script:
- 'if [ $TRAVIS_OS_NAME = osx ] ; then ulimit -n 1024 ; fi'
@@ -13,6 +19,26 @@ before_script:
matrix:
include:
- python: "2.7"
env: TOXENV=py27-cover FYI="py27 tests + code coverage"
- python: "2.7"
env: TOXENV=lint
- python: "2.7"
env: BOULDER_INTEGRATION=v1 INTEGRATION_TEST=certbot TOXENV=py27-certbot-oldest
sudo: required
services: docker
- python: "2.7"
env: BOULDER_INTEGRATION=v2 INTEGRATION_TEST=certbot TOXENV=py27-certbot-oldest
sudo: required
services: docker
- python: "2.7"
env: BOULDER_INTEGRATION=v1 INTEGRATION_TEST=nginx TOXENV=py27-nginx-oldest
sudo: required
services: docker
- python: "2.7"
env: BOULDER_INTEGRATION=v2 INTEGRATION_TEST=nginx TOXENV=py27-nginx-oldest
sudo: required
services: docker
- python: "2.7"
env: BOULDER_INTEGRATION=v1 INTEGRATION_TEST=all TOXENV=py27_install
sudo: required
@@ -22,47 +48,92 @@ matrix:
sudo: required
services: docker
- python: "2.7"
env: TOXENV=py27-cover FYI="py27 tests + code coverage"
- sudo: required
env: TOXENV=nginx_compat
services: docker
before_install:
addons:
- python: "2.7"
env: TOXENV=lint
- python: "3.4"
env: TOXENV=mypy
- python: "3.5"
env: TOXENV=mypy
- python: "2.7"
env: TOXENV='py27-{acme,apache,certbot,dns,nginx,postfix}-oldest'
sudo: required
services: docker
- python: "3.4"
env: TOXENV=py34
sudo: required
services: docker
- python: "3.7"
dist: xenial
env: TOXENV=py37
sudo: required
services: docker
env: TOXENV='py27-{acme,apache,certbot,dns,postfix}-oldest'
- sudo: required
env: TOXENV=apache_compat
services: docker
before_install:
addons:
- sudo: required
env: TOXENV=nginx_compat
services: docker
- sudo: required
env: TOXENV=le_auto_precise
services: docker
- sudo: required
env: TOXENV=le_auto_trusty
services: docker
before_install:
- sudo: required
env: TOXENV=le_auto_wheezy
services: docker
- sudo: required
env: TOXENV=le_auto_centos6
services: docker
- sudo: required
env: TOXENV=docker_dev
services: docker
addons:
apt:
packages: # don't install nginx and apache
- libaugeas0
- python: "2.7"
env: TOXENV=apacheconftest-with-pebble
sudo: required
services: docker
- python: "3.4"
env: TOXENV=py34 BOULDER_INTEGRATION=v1
sudo: required
services: docker
- python: "3.4"
env: TOXENV=mypy
- python: "3.5"
env: TOXENV=mypy
- python: "3.4"
env: TOXENV=py34 BOULDER_INTEGRATION=v2
sudo: required
services: docker
- python: "3.5"
env: TOXENV=py35 BOULDER_INTEGRATION=v1
sudo: required
services: docker
- python: "3.5"
env: TOXENV=py35 BOULDER_INTEGRATION=v2
sudo: required
services: docker
- python: "3.6"
env: TOXENV=py36 BOULDER_INTEGRATION=v1
sudo: required
services: docker
- python: "3.6"
env: TOXENV=py36 BOULDER_INTEGRATION=v2
sudo: required
services: docker
- python: "3.7"
dist: xenial
env: TOXENV=py37 BOULDER_INTEGRATION=v1
sudo: required
services: docker
- python: "3.7"
dist: xenial
env: TOXENV=py37 BOULDER_INTEGRATION=v2
sudo: required
services: docker
- python: "2.7"
env: TOXENV=nginxroundtrip
- language: generic
env: TOXENV=py27
os: osx
addons:
homebrew:
packages:
- augeas
- python2
- language: generic
env: TOXENV=py3
os: osx
addons:
homebrew:
packages:
- augeas
- python3
# Only build pushes to the master branch, PRs, and branches beginning with
@@ -101,10 +172,3 @@ after_success: '[ "$TOXENV" == "py27-cover" ] && codecov'
notifications:
email: false
irc:
channels:
- secure: "SGWZl3ownKx9xKVV2VnGt7DqkTmutJ89oJV9tjKhSs84kLijU6EYdPnllqISpfHMTxXflNZuxtGo0wTDYHXBuZL47w1O32W6nzuXdra5zC+i4sYQwYULUsyfOv9gJX8zWAULiK0Z3r0oho45U+FR5ZN6TPCidi8/eGU+EEPwaAw="
on_cancel: never
on_success: never
on_failure: always
use_notice: true