-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
53 lines (46 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
env:
global:
- PACKAGE="MarkdownTOC" # 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
services: xvfb
language: python
python: 3.7
- os: osx
language: generic
before_install:
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
install:
# bootstrap the testing environment
- sh travis.sh bootstrap
# install Package Control and package denepdencies
# - sh travis.sh install_package_control
script:
# run tests with test coverage report
- sh travis.sh run_tests --coverage
# testing syntax_test files
# - sh travis.sh run_syntax_tests
after_success:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install python3;
pip3 install codecov;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
pip install codecov;
fi
- codecov -t e41883b8-547a-4728-a703-d8e1bbedfcf8
notifications:
email: true