-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify travis.yml according to https://github.com/randy3k/UnitTesting…
- Loading branch information
1 parent
6afc494
commit f2f7215
Showing
1 changed file
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,55 @@ | ||
os: | ||
- linux | ||
- osx | ||
|
||
env: | ||
global: | ||
- PACKAGE="MarkdownTOC" | ||
matrix: | ||
- PACKAGE="UnitTesting-example" # 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.3 | ||
- 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; | ||
fi | ||
|
||
install: | ||
- sudo pip install coveralls coverage codecov | ||
# bootstrap the testing environment | ||
- sh travis.sh bootstrap | ||
- sh travis.sh install_package_control | ||
# 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: | ||
# remove the following if `coveralls` is not needed | ||
- 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; | ||
fi | ||
- coveralls | ||
- codecov -t e41883b8-547a-4728-a703-d8e1bbedfcf8 | ||
|
||
notifications: | ||
email: true | ||
email: true |