slack: Add test for ./manage.py import zulip_data
.
This commit is contained in:
parent
a02f0f98c1
commit
a645ba233f
29
.travis.yml
29
.travis.yml
|
@ -1,23 +1,36 @@
|
||||||
language: python
|
language: python
|
||||||
|
sudo: required
|
||||||
python:
|
python:
|
||||||
- "3.4"
|
- "3.4"
|
||||||
- "3.5"
|
env:
|
||||||
- "3.6"
|
matrix:
|
||||||
env: TEST_SUITE=test-main
|
- TEST_SUITE=test-main
|
||||||
|
global:
|
||||||
|
- BOTO_CONFIG=/tmp/nowhere
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: "2.7"
|
- python: "2.7"
|
||||||
env: TEST_SUITE=test-py2-legacy-support
|
env: TEST_SUITE=test-py2-legacy-support
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
env: TEST_SUITE=test-static-analysis
|
env: TEST_SUITE=test-static-analysis
|
||||||
|
- python: "3.4"
|
||||||
|
env: TEST_SUITE=backend
|
||||||
|
script:
|
||||||
|
- wget https://github.com/houstondatavis/slack-export/archive/master.zip
|
||||||
|
- mv master.zip slack-export-master.zip
|
||||||
|
- zulip/integrations/slack/slackdata2zulipdata.py $PWD/slack-export-master.zip
|
||||||
|
- mv zulip_data.zip $HOME
|
||||||
|
- cd
|
||||||
|
- ls
|
||||||
|
- git clone https://github.com/zulip/zulip.git
|
||||||
|
- cd zulip
|
||||||
|
- ./tools/travis/setup-backend
|
||||||
|
- ./manage.py import ../zulip_data.zip
|
||||||
|
addons:
|
||||||
|
postgresql: "9.3"
|
||||||
install:
|
install:
|
||||||
- tools/provision --force
|
- tools/provision --force
|
||||||
- source zulip-api-py*-venv/bin/activate
|
- source zulip-api-py*-venv/bin/activate
|
||||||
script:
|
|
||||||
- tools/$TEST_SUITE
|
|
||||||
- wget https://github.com/houstondatavis/slack-export/archive/master.zip
|
|
||||||
- mv master.zip slack-export-master.zip
|
|
||||||
- zulip/integrations/slack/slackdata2zulipdata.py $PWD/slack-export-master.zip
|
|
||||||
after_success:
|
after_success:
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
- codecov
|
- codecov
|
||||||
|
|
Loading…
Reference in a new issue