Skip to content

Commit

Permalink
Created .travis.yml and appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan committed Jan 4, 2019
1 parent 2d76625 commit 1294abc
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .travis.yml
@@ -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
7 changes: 7 additions & 0 deletions README.MD
@@ -1,6 +1,13 @@

# Sublime Text Overwrite Commit Completion

[![Build Status](https://travis-ci.org/evandrocoan/OverrideCommitCompletion.svg?branch=master)](https://travis-ci.org/evandrocoan/OverrideCommitCompletion)
[![Build status](https://ci.appveyor.com/api/projects/status/github/evandrocoan/OverrideCommitCompletion?branch=master&svg=true)](https://ci.appveyor.com/project/evandrocoan/OverrideCommitCompletion/branch/master)
[![codecov](https://codecov.io/gh/evandrocoan/OverrideCommitCompletion/branch/master/graph/badge.svg)](https://codecov.io/gh/evandrocoan/OverrideCommitCompletion)
[![Coverage Status](https://coveralls.io/repos/github/evandrocoan/OverrideCommitCompletion/badge.svg?branch=master)](https://coveralls.io/github/evandrocoan/OverrideCommitCompletion?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/58d1b714a900461998c933e36bfc5685)](https://www.codacy.com/app/evandrocoan/OverrideCommitCompletion?utm_source=github.com&utm_medium=referral&utm_content=evandrocoan/OverrideCommitCompletion&utm_campaign=Badge_Grade)
[![Latest Release](https://img.shields.io/github/tag/evandrocoan/OverrideCommitCompletion.svg?label=version)](https://github.com/evandrocoan/OverrideCommitCompletion/releases)
<a href="https://packagecontrol.io/packages/OverrideCommitCompletion"><img src="https://packagecontrol.herokuapp.com/downloads/OverrideCommitCompletion.svg"></a>

Overrides the remaining word when the cursor is in the middle and the completion is performed.
The original version replaces any word after:
Expand Down
33 changes: 33 additions & 0 deletions appveyor.yml
@@ -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

0 comments on commit 1294abc

Please sign in to comment.