This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
68 lines (59 loc) · 1.53 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
sudo: false
language: python
python:
- 3.4
- 3.5
- 3.6
cache:
pip: true
directories:
- node_modules
os:
# # The macOS build in travis is really slow.
# - osx
- linux
# Note that in order to run the tests on Linux,
# you need to have a before_install configuration
# to enable Linux to start VS Code from the build.
# ref https://code.visualstudio.com/Docs/extensions/testing-extensions
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
- cd ./vscode-client
- npm install
- mkdir ./out
- npm run vscode:prepublish
- cd - > /dev/null
- printf '%s\n'
"$(cat test-requirements.txt requirements.txt)"
> requirements.txt
jobs:
include:
- python: 3.6
stage: moban
before_install: false
install: pip install moban
script: .ci/check_moban.sh
after_success: false
script:
- >
# https://github.com/coala/coala-bears/issues/1037
- sed -i.bak '/bears = GitCommitBear/d' .coafile
# Server side tests.
- coverage run $(which behave) ./tests/server.features
- coverage run -a -m unittest discover -s tests
# Frontend tests.
# - cd ./vscode-client
# - npm test
# - cd - > /dev/null
notifications:
email: false
webhooks: https://www.travisbuddy.com/
on_success: never
after_success:
- codecov
# # If the build was triggered by a tag, publish the new version
# - 'if [[ $TRAVIS_TAG == v* ]]; then vsce publish -p $VSCE_TOKEN; fi'