python-zulip-api/.travis.yml
rht 6366448903 slack: Add minor changes.
Rename the function channelmessage2zerver_message to channelmessage2zerver_message_for_one_stream.

Compress the converted data with tar instead of zip.

Add changes in zerver_userprofile mapping and zerver_realm mappings.

Do the manage.py import from a directory instead.
2017-12-03 10:30:02 -08:00

40 lines
1 KiB
YAML

language: python
sudo: required
python:
- "3.4"
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.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.tar.gz $HOME
- cd
- git clone --depth=50 --branch=slack\+\+ https://github.com/rht/zulip.git
- cd zulip
- mv ../zulip_data.tar.gz .
- tar xf zulip_data.tar.gz
- ls zulip_data
- ./tools/travis/setup-backend
- source tools/travis/activate-venv
- ./manage.py import --destroy-rebuild-database $PWD/zulip_data
addons:
postgresql: "9.3"
install:
- tools/provision --force
- source zulip-api-py*-venv/bin/activate
after_success:
- pip install codecov
- codecov