Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 3545688

Browse files
author
Joshua Li
committed
update configs to test against sentry git and latest release
1 parent fadc49c commit 3545688

File tree

3 files changed

+40
-30
lines changed

3 files changed

+40
-30
lines changed

.travis.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1-
sudo: false
1+
dist: xenial
22
language: python
3-
services:
4-
- memcached
5-
- postgresql
6-
- redis-server
73
python:
84
- '2.7'
95
cache:
106
directories:
117
- node_modules
128
- "$HOME/.cache/pip"
9+
10+
matrix:
11+
fast_finish: true
12+
include:
13+
- name: 'Linter'
14+
script:
15+
- pip install 'sentry-flake8==0.1.1'
16+
- make lint
17+
- name: 'Tests (sentry latest release)'
18+
install:
19+
- make ci-install-tests-sentry-latest
20+
script:
21+
- coverage run --source=. -m make test
22+
- name: 'Tests (sentry git)'
23+
install:
24+
- make ci-install-tests-sentry-git
25+
script:
26+
- coverage run --source=. -m make test
27+
28+
after_success:
29+
- codecov
30+
1331
deploy:
1432
provider: pypi
1533
user: getsentry
@@ -18,15 +36,3 @@ deploy:
1836
on:
1937
tags: true
2038
distributions: sdist bdist_wheel
21-
env:
22-
global:
23-
- PIP_DOWNLOAD_CACHE=".pip_download_cache"
24-
before_install:
25-
- pip install codecov
26-
install:
27-
- make develop
28-
script:
29-
- PYFLAKES_NODOCTEST=1 flake8
30-
- coverage run --source=. -m py.test tests
31-
after_success:
32-
- codecov

Makefile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
.PHONY: clean develop install-tests lint publish test
22

3-
develop:
4-
pip install "pip>=7"
5-
pip install -e .
6-
make install-tests
3+
install-pip:
4+
pip install "pip==19.2.3"
75

8-
install-tests:
6+
develop: install-pip
7+
SENTRY_LIGHT_BUILD=1 pip install --no-use-pep517 -e "../sentry[dev]"
8+
pip install -e .[tests]
9+
10+
ci-install-tests-sentry-git: install-pip
11+
pip install --no-use-pep517 'git+https://github.com/getsentry/sentry.git#egg=sentry[dev]'
12+
pip install .[tests]
13+
14+
ci-install-tests-sentry-latest: install-pip
15+
# Note that requirements-test (setuptools tests_require) is in 9.1.2 but was removed in git.
16+
pip install --no-use-pep517 'sentry[dev,tests]'
917
pip install .[tests]
1018

1119
lint:

setup.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99

1010

1111
install_requires = [
12-
'sentry>=7.0.0',
13-
]
14-
15-
tests_require = [
16-
'mock',
17-
'flake8>=2.0,<2.1',
12+
'sentry>=9.0.0',
1813
]
1914

2015
setup(
@@ -29,8 +24,9 @@
2924
packages=find_packages(exclude=['tests']),
3025
zip_safe=False,
3126
install_requires=install_requires,
32-
tests_require=tests_require,
33-
extras_require={'tests': tests_require},
27+
extras_require={
28+
'tests': [],
29+
},
3430
include_package_data=True,
3531
entry_points={
3632
'sentry.apps': [

0 commit comments

Comments
 (0)