Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created .travis.yml and appveyor.yml
- Loading branch information
1 parent
2d76625
commit 1294abc
Showing
3 changed files
with
113 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
env: | ||
global: | ||
- PACKAGE="OverrideCommitCompletion" # 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/evandroforks/UnitTesting/master/sbin/travis.sh | ||
|
||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
brew update; | ||
brew install python3; | ||
pip3 --disable-pip-version-check install python-coveralls; | ||
pip3 --disable-pip-version-check 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; | ||
sh -e /etc/init.d/xvfb start; | ||
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 | ||
|
||
# testing syntax_test files | ||
# - sh travis.sh run_syntax_tests | ||
|
||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
coveralls; | ||
codecov; | ||
coverage xml -o coverage.xml; | ||
fi | ||
|
||
- python-codacy-coverage; | ||
|
||
|
||
after_success: | ||
- echo "After Success" | ||
|
||
notifications: | ||
email: false |
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
environment: | ||
# The package name | ||
PACKAGE: "OverrideCommitCompletion" | ||
SUBLIME_TEXT_VERSION : "3" | ||
|
||
|
||
install: | ||
- ps: appveyor DownloadFile "https://raw.githubusercontent.com/evandroforks/UnitTesting/master/sbin/appveyor.ps1" | ||
- ps: .\appveyor.ps1 "bootstrap" -verbose | ||
- ps: pip install --disable-pip-version-check coverage codacy-coverage | ||
|
||
# install Package Control | ||
- ps: .\appveyor.ps1 "install_package_control" -verbose | ||
|
||
|
||
build: off | ||
|
||
|
||
test_script: | ||
# run tests with test coverage report | ||
- ps: .\appveyor.ps1 "run_tests" -coverage -verbose | ||
|
||
|
||
on_finish: | ||
- "SET PYTHON=C:\\Python33" | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
- pip install --disable-pip-version-check codecov | ||
- codecov | ||
- python --version | ||
- echo %PATH% | ||
- coverage xml -o coverage.xml | ||
- python-codacy-coverage |