forked from niosus/EasyClangComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (40 loc) · 1.18 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
env:
global:
# Your package name
- PACKAGE="EasyClangComplete"
- SUBLIME_TEXT_VERSION="3" PCINSTALL=true
language:
- python
matrix:
include:
- os: linux
env: DISTRO="Ubuntu"
dist: trusty
sudo: required
- os: osx
env: DISTRO="OSX"
language: generic
before_install:
- curl -OL https://raw.githubusercontent.com/randy3k/UnitTesting/master/sbin/travis.sh
# 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;
sudo apt-get update -yqq;
sudo apt-get install -y clang;
sudo pip install --upgrade pycodestyle pep257;
sudo pip install coverage codacy-coverage;
fi
install:
- sh travis.sh bootstrap
- if [ "$PCINSTALL" == true ]; then sh travis.sh install_package_control; fi
script:
- ls
- sh travis.sh run_tests --coverage
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
coverage xml -o coverage.xml;
fi
after_success:
- python-codacy-coverage -r coverage.xml
notifications:
email: false