Skip to content

Commit

Permalink
Merge pull request #67 from CJTozer/update-ci
Browse files Browse the repository at this point in the history
Update CI with latest from randy3k/UnitTesting-example
  • Loading branch information
CJTozer committed May 3, 2019
2 parents 031cf00 + 565f5d6 commit 89f96ee
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
os:
- linux
- osx

sudo: required

env:
Expand All @@ -10,14 +6,42 @@ env:
matrix:
- SUBLIME_TEXT_VERSION="3"

env:
global:
- PACKAGE="DiffView"
- SUBLIME_TEXT_VERSION="3"

matrix:
include:
- os: linux
language: python
python: 3.3
- os: osx
language: generic


before_install:
- curl -OL https://raw.githubusercontent.com/randy3k/UnitTesting/master/sbin/travis.sh
- 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:
# bootstrap the testing environment
- sh travis.sh bootstrap

script:
- sh travis.sh run_tests
# run tests with test coverage report
- sh travis.sh run_tests --coverage

after_success:
# remove the following if `coveralls` is not needed
- pip3 install python-coveralls;
- pip3 install codecov;
- coveralls
- codecov

notifications:
email: false

0 comments on commit 89f96ee

Please sign in to comment.