forked from RedisDesktop/OopsyPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (58 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: python
dist: trusty
sudo: required
os:
- linux
# - osx
python:
- 3.6
services:
- mongodb
- redis-server
env:
global:
- MOZ_HEADLESS=1
- OOPSY_HOST=http://127.0.0.1:8080
- OOPSY_ENV=test
addons:
firefox: latest
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update > /dev/null
&& brew install qt5 > /dev/null
&& export PATH=/usr/local/opt/qt5/bin/:$PATH
;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo add-apt-repository --yes ppa:beineri/opt-qt592-trusty &&
sudo apt-get update -y &&
sudo apt-get install qt59base -y &&
source /opt/qt59/bin/qt59-env.sh
;
fi
- pushd ./3rdparty && ./build.sh && popd
- pushd ./tests/integration/test_app && ./build.sh && popd
- virtualenv .venv -p python3 && source .venv/bin/activate
- python --version && which python
- pip install .
before_script:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.19.0-linux64.tar.gz -C geckodriver
- export PATH=$PWD/geckodriver/:$PATH
- oopsy_run_server --host 127.0.0.1 --port 8080 -D
- oopsy_celery_worker run
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- oopsy_admin login -u [email protected] -p test
- oopsy_admin project add test_app -v 1.0 -p Linux
- pushd ./tests/integration/test_app
- export OOPSY_SYMFILE_PATH=`oopsy_symfile create ./bin/test_app test_app.sym`
- oopsy_symfile send ${OOPSY_SYMFILE_PATH} 1.0.0
- ./bin/test_app || true && popd
- pip install -r requirements-test.txt
- py.test
- oopsy_celery_worker logs
- cat oopsy.log