Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Commit 6c592d3

Browse files
committed
CI: Add travis and codecov support
1 parent 4594fca commit 6c592d3

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

Diff for: .coveragerc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
source = .
4+
5+
[report]
6+
exclude_lines =
7+
if self.debug:
8+
pragma: no cover
9+
raise NotImplementedError
10+
if __name__ == .__main__.:
11+
ignore_errors = True
12+
omit =
13+
tests/*

Diff for: .travis.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
sudo: false
2+
language: python
3+
python:
4+
- 3.4
5+
- 3.5
6+
- 3.6
7+
8+
cache:
9+
pip: true
10+
directories:
11+
- node_modules
12+
13+
os:
14+
# # The macOS build in travis is really slow.
15+
# - osx
16+
- linux
17+
18+
# Note that in order to run the tests on Linux,
19+
# you need to have a before_install configuration
20+
# to enable Linux to start VS Code from the build.
21+
# ref https://code.visualstudio.com/Docs/extensions/testing-extensions
22+
before_install:
23+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
24+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
25+
sh -e /etc/init.d/xvfb start;
26+
sleep 3;
27+
fi
28+
29+
install:
30+
# beheve is a dev dependeny, so not in requirements.txt.
31+
- pip install behave
32+
- pip install -r ./requirements.txt
33+
# codecov is a code coverage tool.
34+
- pip install codecov
35+
- cd ./vscode-client
36+
- npm install
37+
- mkdir ./out
38+
- npm run vscode:prepublish
39+
- cd - > /dev/null
40+
41+
script:
42+
# Server side tests.
43+
- coverage run $(which behave) ./tests/server.features
44+
# # Integration tests.
45+
# - cd ./vscode-client
46+
# - npm test
47+
# - cd - > /dev/null
48+
49+
after_success:
50+
- codecov
51+
# # If the build was triggered by a tag, publish the new version
52+
# - 'if [[ $TRAVIS_TAG == v* ]]; then vsce publish -p $VSCE_TOKEN; fi'

0 commit comments

Comments
 (0)