Skip to content

Commit 028d23b

Browse files
committed
Add test-backend from Zulip server.
1 parent f74c94b commit 028d23b

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,26 @@ python:
44
- "3.4"
55
- "3.5"
66
- "3.6"
7-
env: TEST_SUITE=test-main
7+
env:
8+
matrix:
9+
- TEST_SUITE=test-main
10+
global:
11+
- BOTO_CONFIG=/tmp/nowhere
812
matrix:
913
include:
1014
- python: "2.7"
1115
env: TEST_SUITE=test-py2-legacy-support
1216
- python: "3.6"
1317
env: TEST_SUITE=test-static-analysis
18+
- python: "3.6"
19+
sudo: required
20+
env: TEST_SUITE=backend
21+
script:
22+
- echo "$TRAVIS_PULL_REQUEST"
23+
- cd
24+
- git clone https://github.com/zulip/zulip.git
25+
- cd zulip
26+
- $TRAVIS_BUILD_DIR/tools/test-backend
1427
addons:
1528
postgresql: "9.3"
1629
install:

tools/test-backend

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
sed -i "s|[email protected]|python-zulip-api.git@refs/pull/$TRAVIS_PULL_REQUEST|" requirements/common.txt
4+
sed -i "s|[email protected]|python-zulip-api.git@refs/pull/$TRAVIS_PULL_REQUEST|" requirements/dev_lock.txt
5+
sed -i "s|[email protected]|python-zulip-api.git@refs/pull/$TRAVIS_PULL_REQUEST|" requirements/prod_lock.txt
6+
7+
./tools/travis/setup-backend
8+
9+
source tools/travis/activate-venv
10+
echo "Test suite is running under $(python --version)."
11+
12+
set -e
13+
set -x
14+
15+
./tools/test-api

0 commit comments

Comments
 (0)