forked from jgirardet/sublack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (43 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
env:
global:
- PACKAGE="sublack" # 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.6
- os: osx
language: generic
services:
# Starts a graphical environment
- xvfb
before_install:
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
install:
# bootstrap the testing environment
- sh travis.sh bootstrap
# install specific packages
- pip3 install black[d]
- pip3 install requests
- pip3 install pre-commit
# install Package Control and package dependencies
- sh travis.sh install_package_control
script:
- which python
- which python
- bash -ilc env
# 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
- pip3 install codecov;
- codecov
notifications:
email: false