Skip to content

Commit 54df05a

Browse files
committed
Add test-backend from Zulip server.
1 parent 8adf518 commit 54df05a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,27 @@ 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: "3.6"
1115
env: TEST_SUITE=test-static-analysis
16+
- python: "3.4"
17+
sudo: required
18+
env: TEST_SUITE=backend
19+
script:
20+
- cd
21+
- ls
22+
- ls zulip
23+
- git clone https://github.com/zulip/zulip.git
24+
- cd zulip
25+
- ./python-zulip-api/tools/test-backend
26+
addons:
27+
postgresql: "9.3"
1228
install:
1329
- tools/provision
1430
- source zulip-api-py*-venv/bin/activate

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@pull/$TRAVIS_PULL_REQUEST|" requirements/common.txt
4+
sed -i "s|[email protected]|python-zulip-api.git@pull/$TRAVIS_PULL_REQUEST|" requirements/dev_lock.txt
5+
sed -i "s|[email protected]|python-zulip-api.git@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)