Skip to content

Add test-backend from Zulip server. #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,28 @@ python:
- "3.4"
- "3.5"
- "3.6"
env: TEST_SUITE=test-main
env:
matrix:
- TEST_SUITE=test-main
global:
- BOTO_CONFIG=/tmp/nowhere
matrix:
include:
- python: "2.7"
env: TEST_SUITE=test-py2-legacy-support
- python: "3.6"
env: TEST_SUITE=test-static-analysis
- python: "3.6"
sudo: required
env: TEST_SUITE=backend
script:
- echo $TRAVIS_PULL_REQUEST_BRANCH
- echo $TRAVIS_PULL_REQUEST_SLUG
- echo $TRAVIS_PULL_REQUEST
- cd
- git clone https://github.com/zulip/zulip.git
- cd zulip
- $TRAVIS_BUILD_DIR/tools/test-backend
addons:
postgresql: "9.3"
install:
Expand Down
15 changes: 15 additions & 0 deletions tools/test-backend
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

sed -i "s|zulip/[email protected]|$TRAVIS_PULL_REQUEST_SLUG/tree/$TRAVIS_PULL_REQUEST_BRANCH|" requirements/common.txt
sed -i "s|zulip/[email protected]|$TRAVIS_PULL_REQUEST_SLUG/tree/$TRAVIS_PULL_REQUEST_BRANCH|" requirements/dev_lock.txt
sed -i "s|zulip/[email protected]|$TRAVIS_PULL_REQUEST_SLUG/tree/$TRAVIS_PULL_REQUEST_BRANCH|" requirements/prod_lock.txt

./tools/travis/setup-backend

source tools/travis/activate-venv
echo "Test suite is running under $(python --version)."

set -e
set -x

./tools/test-api