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 erikj/xp…
…ath_fix
- Loading branch information
Showing
23 changed files
with
769 additions
and
349 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 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,44 @@ | ||
#! /bin/bash | ||
|
||
# This clones a project from github into a named subdirectory | ||
# If the project has a branch with the same name as this branch | ||
# then it will checkout that branch after cloning. | ||
# Otherwise it will checkout "origin/develop." | ||
# The first argument is the name of the directory to checkout | ||
# the branch into. | ||
# The second argument is the URL of the remote repository to checkout. | ||
# Usually something like https://github.com/matrix-org/sytest.git | ||
|
||
set -eux | ||
|
||
NAME=$1 | ||
PROJECT=$2 | ||
BASE=".$NAME-base" | ||
|
||
# Update our mirror. | ||
if [ ! -d ".$NAME-base" ]; then | ||
# Create a local mirror of the source repository. | ||
# This saves us from having to download the entire repository | ||
# when this script is next run. | ||
git clone "$PROJECT" "$BASE" --mirror | ||
else | ||
# Fetch any updates from the source repository. | ||
(cd "$BASE"; git fetch -p) | ||
fi | ||
|
||
# Remove the existing repository so that we have a clean copy | ||
rm -rf "$NAME" | ||
# Cloning with --shared means that we will share portions of the | ||
# .git directory with our local mirror. | ||
git clone "$BASE" "$NAME" --shared | ||
|
||
# Jenkins may have supplied us with the name of the branch in the | ||
# environment. Otherwise we will have to guess based on the current | ||
# commit. | ||
: ${GIT_BRANCH:="origin/$(git rev-parse --abbrev-ref HEAD)"} | ||
cd "$NAME" | ||
# check out the relevant branch | ||
git checkout "${GIT_BRANCH}" || ( | ||
echo >&2 "No ref ${GIT_BRANCH} found, falling back to develop" | ||
git checkout "origin/develop" | ||
) |
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,19 @@ | ||
#! /bin/bash | ||
|
||
cd "`dirname $0`/.." | ||
|
||
TOX_DIR=$WORKSPACE/.tox | ||
|
||
mkdir -p $TOX_DIR | ||
|
||
if ! [ $TOX_DIR -ef .tox ]; then | ||
ln -s "$TOX_DIR" .tox | ||
fi | ||
|
||
# set up the virtualenv | ||
tox -e py27 --notest -v | ||
|
||
TOX_BIN=$TOX_DIR/py27/bin | ||
python synapse/python_dependencies.py | xargs -n1 $TOX_BIN/pip install | ||
$TOX_BIN/pip install lxml | ||
$TOX_BIN/pip install psycopg2 |
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
Oops, something went wrong.