-
Notifications
You must be signed in to change notification settings - Fork 262
/
Copy path.travis.yml
86 lines (74 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
env:
global:
- NVM_SYMLINK_CURRENT=true
- PACKAGE="Nodejs" # Package name
- SUBLIME_TEXT_VERSION="3"
- PLUGIN_VERSION="2.0.5"
# use UNITTESTING_TAG to specific tag of UnitTesting
# - UNITTESTING_TAG="master"
addons:
homebrew:
packages:
- python
apt:
sources:
- deadsnakes
packages:
- python3.8
branches:
only:
- master
# mutliple os matrix
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
matrix:
include:
- os: linux
language: node_js
node_js: "12"
env:
- NODEJS_VERSION="v12"
- os: linux
language: node_js
node_js: "13"
env:
- NODEJS_VERSION="v13"
- os: osx
language: node_js
node_js: "12"
env:
- NODEJS_VERSION="v12"
- os: osx
language: node_js
node_js: "13"
env:
- NODEJS_VERSION="v13"
services:
- xvfb
before_install:
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
- export NVM_SYMLINK_CURRENT=true
install:
- nvm alias default $NODEJS_VERSION; nvm use $NODEJS_VERSION
# bootstrap the testing environment
- sh travis.sh bootstrap
# install Package Control and package dependencies
- sh travis.sh install_package_control
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
touch "$HOME/Library/Application Support/Sublime Text 3/Packages/Nodejs/.debug_plugin";
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
touch $HOME/.config/sublime-text-3/Packages/Nodejs/.debug_plugin;
fi
- rm -vf /home/travis/.config/sublime-text-3/Packages/UnitTesting/.python-version
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:
- pip3 install python-coveralls;
- pip3 install coverage==4.5.4 codecov==2.0.15
- coveralls
- codecov
notifications:
email: false