forked from mozilla/mozregression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 2.16 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
os:
- linux
- osx
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sudo apt-get update -qq;
sudo apt-get install python-qt4 pyqt4-dev-tools;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update; brew outdated xctool || brew upgrade xctool;
pip install virtualenv;
brew install pyqt;
brew linkapps qt;
MOZPATH="$PWD";
mkdir -p /Users/travis/Library/Python/2.7/lib/python/site-packages;
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/travis/Library/Python/2.7/lib/python/site-packages/homebrew.pth;
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH;
cd /usr/local/opt/pyqt/lib/python2.7/site-packages/PyQt4;
sudo install_name_tool -id $PWD/QtCore.so QtCore.so;
sudo install_name_tool -id $PWD/QtGui.so QtGui.so;
cd $MOZPATH;
fi
- virtualenv --system-site-packages venv
- source venv/bin/activate
- pip install -r requirements-gui-dev.txt
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./check.py --with-coverage --with-gui; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./check.py --with-gui; fi
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install coveralls; coveralls; fi
before_deploy:
- python gui/build.py bundle
deploy:
- provider: releases
api-key:
secure: GKlGCKzsjPyUVmtYZhOU0ggQH5RN5UgC+aEckfdguPLSnSeKxe3FLOV25zoe0+CLiYOHbsxvbTxB1fNh2KVxcrV7zroKzijhzFMAgfBP/yuCBeNWYR0tf/5qLk/xd26JQ+2Om6eyPnT+jc3JjmU7g8nYfEBrNDmtQ5Kmm0N4Crk=
file: gui/dist/mozregression-gui.dmg
skip_cleanup: true
on:
tags: true
condition:
- $TRAVIS_OS_NAME == osx
- provider: releases
api-key:
secure: GKlGCKzsjPyUVmtYZhOU0ggQH5RN5UgC+aEckfdguPLSnSeKxe3FLOV25zoe0+CLiYOHbsxvbTxB1fNh2KVxcrV7zroKzijhzFMAgfBP/yuCBeNWYR0tf/5qLk/xd26JQ+2Om6eyPnT+jc3JjmU7g8nYfEBrNDmtQ5Kmm0N4Crk=
file: gui/mozregression-gui.tar.gz
skip_cleanup: true
on:
tags: true
condition:
- $TRAVIS_OS_NAME == linux