-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
77 lines (55 loc) · 1.77 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
env:
global:
- PACKAGE="AmxxEditor" # Package name
- SUBLIME_TEXT_VERSION="3"
# use UNITTESTING_TAG to specific tag of UnitTesting
# - UNITTESTING_TAG="master"
# mutliple os matrix
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
matrix:
include:
- os: linux
language: python
python: 3.4
- os: osx
language: generic
services:
- xvfb
before_install:
- curl -OL https://raw.githubusercontent.com/evandrocoan/UnitTesting/master/sbin/travis.sh
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install python3;
pip3 install python-coveralls;
pip3 install codecov;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pip install python-coveralls;
pip install codecov;
pip install coverage codacy-coverage;
fi
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export DISPLAY=:99.0;
fi
install:
# bootstrap the testing environment
- sh travis.sh bootstrap
# install Package Control and package dependencies
- sh travis.sh install_package_control
script:
# run tests with test coverage report
- sh travis.sh run_tests --coverage; sh travis.sh show_full_sublime_text_console $?;
# testing syntax_test files
# - sh travis.sh run_syntax_tests
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
coveralls;
codecov;
coverage xml -o coverage.xml;
python-codacy-coverage;
fi
after_success:
# remove the following if `coveralls` is not needed
- echo
notifications:
email: false