slack: Fix travis tests.
This commit is contained in:
parent
e5726fdc96
commit
1d2d6c9cf7
28
.travis.yml
28
.travis.yml
|
@ -2,11 +2,9 @@ language: python
|
||||||
sudo: required
|
sudo: required
|
||||||
python:
|
python:
|
||||||
- "3.4"
|
- "3.4"
|
||||||
env:
|
- "3.5"
|
||||||
matrix:
|
- "3.6"
|
||||||
- TEST_SUITE=test-main
|
env: TEST_SUITE=test-main
|
||||||
global:
|
|
||||||
- BOTO_CONFIG=/tmp/nowhere
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: "2.7"
|
- python: "2.7"
|
||||||
|
@ -14,26 +12,16 @@ matrix:
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
env: TEST_SUITE=test-static-analysis
|
env: TEST_SUITE=test-static-analysis
|
||||||
- python: "3.4"
|
- python: "3.4"
|
||||||
env: TEST_SUITE=backend
|
env: TEST_SUITE=test-slack-importer
|
||||||
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:
|
addons:
|
||||||
postgresql: "9.3"
|
postgresql: "9.3"
|
||||||
install:
|
install:
|
||||||
|
- sudo rm -vf /etc/apt/sources.list.d/*
|
||||||
|
- sudo apt-get update
|
||||||
- tools/provision --force
|
- tools/provision --force
|
||||||
- source zulip-api-py*-venv/bin/activate
|
- source zulip-api-py*-venv/bin/activate
|
||||||
|
script:
|
||||||
|
- tools/$TEST_SUITE
|
||||||
after_success:
|
after_success:
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
- codecov
|
- codecov
|
||||||
|
|
19
tools/test-slack-importer
Executable file
19
tools/test-slack-importer
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
|
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=test-slack-importer https://github.com/rheaparekh/zulip.git
|
||||||
|
cd zulip
|
||||||
|
mv ../zulip_data.tar.gz .
|
||||||
|
tar xf zulip_data.tar.gz
|
||||||
|
|
||||||
|
./tools/travis/setup-backend
|
||||||
|
source tools/travis/activate-venv
|
||||||
|
./manage.py import --destroy-rebuild-database $PWD/zulip_data
|
Loading…
Reference in a new issue