Skip to content

Commit

Permalink
Modify travis.yml according to https://github.com/randy3k/UnitTesting…
Browse files Browse the repository at this point in the history
  • Loading branch information
naokazuterada committed Jan 7, 2018
1 parent 6afc494 commit f2f7215
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions .travis.yml
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

0 comments on commit f2f7215

Please sign in to comment.