-
Notifications
You must be signed in to change notification settings - Fork 119
/
.travis.yml
60 lines (49 loc) · 1.46 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
sudo: false
matrix:
include:
- os: linux
dist: xenial
language: python
python: "3.6"
sudo: false
- os: osx
osx_image: xcode8.3
language: generic
sudo: required
env: PY_VER=3.6.10
env:
global:
- ARTIFACTS_TARGET_PATHS="webrecorder-player/$TRAVIS_BRANCH"
addons:
artifacts:
paths:
- webrecorder-$TRAVIS_OS_NAME
- webrecorder-player-$TRAVIS_OS_NAME
before_install: |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew upgrade pyenv;
eval "$(pyenv init -)";
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PY_VER;
pyenv global $PY_VER;
pip install -U setuptools;
pip install pyopenssl;
fi
install:
- cd webrecorder
- pip install 'urllib3==1.23'
- pip install -U setuptools wheel
- python setup.py install
- pip install coverage pytest-cov codecov
- pip install 'pyinstaller==3.3'
script:
- python setup.py test
- cd webrecorder/standalone
- pyinstaller --clean --additional-hooks-dir ./hooks/ -y -F ./webrecorder_player.py
- mv ./dist/webrecorder_player $TRAVIS_BUILD_DIR/webrecorder-player-$TRAVIS_OS_NAME
- $TRAVIS_BUILD_DIR/webrecorder-player-$TRAVIS_OS_NAME -v
- pyinstaller --clean --additional-hooks-dir ./hooks/ -y -F ./webrecorder_full.py
- mv ./dist/webrecorder_full $TRAVIS_BUILD_DIR/webrecorder-$TRAVIS_OS_NAME
- $TRAVIS_BUILD_DIR/webrecorder-$TRAVIS_OS_NAME -v
after_success:
- cd $TRAVIS_BUILD_DIR/webrecorder
- codecov