2019-02-27 14:03:14 -07:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: "2dd7eb9b-0eda-45fe-a47c-9b5ac040045f"
|
|
|
|
|
|
|
|
steps:
|
2019-06-17 05:08:15 -06:00
|
|
|
|
2019-02-27 14:03:14 -07:00
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
2019-06-20 03:32:02 -06:00
|
|
|
- "tox -e check_codestyle"
|
|
|
|
label: "\U0001F9F9 Check Style"
|
2019-02-27 14:03:14 -07:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e packaging"
|
|
|
|
label: "\U0001F9F9 packaging"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e check_isort"
|
|
|
|
label: "\U0001F9F9 isort"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "scripts-dev/check-newsfragment"
|
|
|
|
label: ":newspaper: Newsfile"
|
|
|
|
branches: "!master !develop !release-*"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
propagate-environment: true
|
|
|
|
|
2019-03-04 10:14:58 -07:00
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e check-sampleconfig"
|
|
|
|
label: "\U0001F9F9 check-sample-config"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
|
2019-06-06 09:36:28 -06:00
|
|
|
- wait
|
|
|
|
|
2019-06-17 05:08:15 -06:00
|
|
|
|
2019-02-27 14:03:14 -07:00
|
|
|
- command:
|
2019-07-29 06:04:50 -06:00
|
|
|
- "apt-get update && apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev zlib1g-dev"
|
|
|
|
- "python3.5 -m pip install tox"
|
2019-06-12 05:31:59 -06:00
|
|
|
- "tox -e py35-old,codecov"
|
|
|
|
label: ":python: 3.5 / SQLite / Old Deps"
|
2019-02-27 14:03:14 -07:00
|
|
|
env:
|
|
|
|
TRIAL_FLAGS: "-j 2"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-07-29 06:04:50 -06:00
|
|
|
image: "ubuntu:xenial" # We use xenail to get an old sqlite and python
|
2019-02-27 14:03:14 -07:00
|
|
|
propagate-environment: true
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e py35,codecov"
|
|
|
|
label: ":python: 3.5 / SQLite"
|
|
|
|
env:
|
|
|
|
TRIAL_FLAGS: "-j 2"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.5"
|
|
|
|
propagate-environment: true
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e py36,codecov"
|
|
|
|
label: ":python: 3.6 / SQLite"
|
|
|
|
env:
|
|
|
|
TRIAL_FLAGS: "-j 2"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.6"
|
|
|
|
propagate-environment: true
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- command:
|
|
|
|
- "python -m pip install tox"
|
|
|
|
- "tox -e py37,codecov"
|
|
|
|
label: ":python: 3.7 / SQLite"
|
|
|
|
env:
|
|
|
|
TRIAL_FLAGS: "-j 2"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "python:3.7"
|
|
|
|
propagate-environment: true
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- label: ":python: 3.5 / :postgres: 9.5"
|
2019-07-19 03:01:23 -06:00
|
|
|
agents:
|
|
|
|
queue: "medium"
|
2019-02-27 14:03:14 -07:00
|
|
|
env:
|
2019-07-19 03:01:23 -06:00
|
|
|
TRIAL_FLAGS: "-j 8"
|
2019-02-27 14:03:14 -07:00
|
|
|
command:
|
|
|
|
- "bash -c 'python -m pip install tox && python -m tox -e py35-postgres,codecov'"
|
|
|
|
plugins:
|
|
|
|
- docker-compose#v2.1.0:
|
|
|
|
run: testenv
|
|
|
|
config:
|
|
|
|
- .buildkite/docker-compose.py35.pg95.yaml
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- label: ":python: 3.7 / :postgres: 9.5"
|
2019-07-19 03:01:23 -06:00
|
|
|
agents:
|
|
|
|
queue: "medium"
|
2019-02-27 14:03:14 -07:00
|
|
|
env:
|
2019-07-19 03:01:23 -06:00
|
|
|
TRIAL_FLAGS: "-j 8"
|
2019-02-27 14:03:14 -07:00
|
|
|
command:
|
|
|
|
- "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,codecov'"
|
|
|
|
plugins:
|
|
|
|
- docker-compose#v2.1.0:
|
|
|
|
run: testenv
|
|
|
|
config:
|
|
|
|
- .buildkite/docker-compose.py37.pg95.yaml
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-02-27 14:03:14 -07:00
|
|
|
|
|
|
|
- label: ":python: 3.7 / :postgres: 11"
|
2019-07-19 03:01:23 -06:00
|
|
|
agents:
|
|
|
|
queue: "medium"
|
2019-02-27 14:03:14 -07:00
|
|
|
env:
|
2019-07-19 03:01:23 -06:00
|
|
|
TRIAL_FLAGS: "-j 8"
|
2019-02-27 14:03:14 -07:00
|
|
|
command:
|
|
|
|
- "bash -c 'python -m pip install tox && python -m tox -e py37-postgres,codecov'"
|
|
|
|
plugins:
|
|
|
|
- docker-compose#v2.1.0:
|
|
|
|
run: testenv
|
|
|
|
config:
|
|
|
|
- .buildkite/docker-compose.py37.pg11.yaml
|
2019-06-06 17:20:17 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
2019-06-17 05:08:15 -06:00
|
|
|
|
|
|
|
|
|
|
|
- label: "SyTest - :python: 3.5 / SQLite / Monolith"
|
|
|
|
agents:
|
|
|
|
queue: "medium"
|
|
|
|
command:
|
|
|
|
- "bash .buildkite/merge_base_branch.sh"
|
2019-07-04 09:24:13 -06:00
|
|
|
- "bash /synapse_sytest.sh"
|
2019-06-17 05:08:15 -06:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "matrixdotorg/sytest-synapse:py35"
|
|
|
|
propagate-environment: true
|
2019-07-04 09:24:13 -06:00
|
|
|
always-pull: true
|
2019-07-11 07:43:41 -06:00
|
|
|
workdir: "/src"
|
2019-06-17 05:08:15 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
|
|
|
|
|
|
|
- label: "SyTest - :python: 3.5 / :postgres: 9.6 / Monolith"
|
|
|
|
agents:
|
|
|
|
queue: "medium"
|
|
|
|
env:
|
|
|
|
POSTGRES: "1"
|
|
|
|
command:
|
|
|
|
- "bash .buildkite/merge_base_branch.sh"
|
2019-07-04 09:24:13 -06:00
|
|
|
- "bash /synapse_sytest.sh"
|
2019-06-17 05:08:15 -06:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "matrixdotorg/sytest-synapse:py35"
|
|
|
|
propagate-environment: true
|
2019-07-04 09:24:13 -06:00
|
|
|
always-pull: true
|
2019-07-11 07:43:41 -06:00
|
|
|
workdir: "/src"
|
2019-06-17 05:08:15 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|
|
|
|
|
|
|
|
- label: "SyTest - :python: 3.5 / :postgres: 9.6 / Workers"
|
|
|
|
agents:
|
|
|
|
queue: "medium"
|
|
|
|
env:
|
|
|
|
POSTGRES: "1"
|
|
|
|
WORKERS: "1"
|
2019-07-22 09:05:00 -06:00
|
|
|
BLACKLIST: "synapse-blacklist-with-workers"
|
2019-06-17 05:08:15 -06:00
|
|
|
command:
|
|
|
|
- "bash .buildkite/merge_base_branch.sh"
|
2019-07-22 09:05:00 -06:00
|
|
|
- "bash -c 'cat /src/sytest-blacklist /src/.buildkite/worker-blacklist > /src/synapse-blacklist-with-workers'"
|
2019-07-04 09:24:13 -06:00
|
|
|
- "bash /synapse_sytest.sh"
|
2019-06-17 05:08:15 -06:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "matrixdotorg/sytest-synapse:py35"
|
|
|
|
propagate-environment: true
|
2019-07-04 09:24:13 -06:00
|
|
|
always-pull: true
|
2019-07-11 07:43:41 -06:00
|
|
|
workdir: "/src"
|
2019-06-17 05:08:15 -06:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: -1
|
|
|
|
limit: 2
|
|
|
|
- exit_status: 2
|
|
|
|
limit: 2
|