Permalink
Browse files

Migrated to CircleCI 2.0

  • Loading branch information...
defnull committed Oct 25, 2018
1 parent 4dab7d8 commit 9fb3b05846b33e508545a26e424785e151d02323
Showing with 54 additions and 13 deletions.
  1. +49 −0 .circleci/config.yml
  2. +0 −13 circle.yml
  3. +5 −0 test/test_sendfile.py
@@ -0,0 +1,49 @@
version: 2
workflows:
version: 2
test:
jobs:
- test-2.7
- test-3.3
- test-3.4
- test-3.5
- test-3.6
- test-3.7
jobs:
test-3.7: &test-template
parallelism: 1
docker:
- image: circleci/python:3.7
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
steps:
- checkout
- run: python --version
- run: python -m unittest discover
- store_test_results:
path: /tmp/circleci-test-results
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
test-3.6:
<<: *test-template
docker:
- image: circleci/python:3.6
test-3.5:
<<: *test-template
docker:
- image: circleci/python:3.5
test-3.4:
<<: *test-template
docker:
- image: circleci/python:3.4
test-3.3:
<<: *test-template
docker:
- image: circleci/python:3.3
test-2.7:
<<: *test-template
docker:
- image: circleci/python:2.7

This file was deleted.

Oops, something went wrong.
@@ -55,6 +55,11 @@ def test_invalid(self):
self.assertEqual(404, static_file('not/a/file', root=root).status_code)
f = static_file(os.path.join('./../', basename), root='./views/')
self.assertEqual(403, f.status_code)
def test_file_not_readable(self):
if os.geteuid() == 0:
return # Root can read anything
try:
fp, fn = tempfile.mkstemp()
os.chmod(fn, 0)

0 comments on commit 9fb3b05

Please sign in to comment.