This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:matrix-org/synapse into soru/knock
- Loading branch information
Showing
1,105 changed files
with
19,843 additions
and
8,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
# Copyright 2019 The Matrix.org Foundation C.I.C. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import sys | ||
|
||
import psycopg2 | ||
|
||
# a very simple replacment for `psql`, to make up for the lack of the postgres client | ||
# libraries in the synapse docker image. | ||
|
||
# We use "postgres" as a database because it's bound to exist and the "synapse" one | ||
# doesn't exist yet. | ||
db_conn = psycopg2.connect( | ||
user="postgres", host="postgres", password="postgres", dbname="postgres" | ||
) | ||
db_conn.autocommit = True | ||
cur = db_conn.cursor() | ||
for c in sys.argv[1:]: | ||
cur.execute(c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# this script is run by buildkite in a plain `xenial` container; it installs the | ||
# minimal requirements for tox and hands over to the py35-old tox environment. | ||
# this script is run by buildkite in a plain `bionic` container; it installs the | ||
# minimal requirements for tox and hands over to the py3-old tox environment. | ||
|
||
set -ex | ||
|
||
apt-get update | ||
apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox | ||
apt-get install -y python3 python3-dev python3-pip libxml2-dev libxslt-dev xmlsec1 zlib1g-dev tox | ||
|
||
export LANG="C.UTF-8" | ||
|
||
# Prevent virtualenv from auto-updating pip to an incompatible version | ||
export VIRTUALENV_NO_DOWNLOAD=1 | ||
|
||
exec tox -e py35-old,combine | ||
exec tox -e py3-old,combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy the documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
pages: | ||
name: GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup mdbook | ||
uses: peaceiris/actions-mdbook@4b5ef36b314c2599664ca107bb8c02412548d79d # v1.1.14 | ||
with: | ||
mdbook-version: '0.4.9' | ||
|
||
- name: Build the documentation | ||
run: mdbook build | ||
|
||
- name: Deploy latest documentation | ||
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
keep_files: true | ||
publish_dir: ./book | ||
destination_dir: ./develop |
Oops, something went wrong.