forked from abiggerhammer/hammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (123 loc) · 3.46 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
sudo: required
dist: trusty
language: c
compiler:
- gcc
- clang
env:
- BINDINGS=none
matrix:
include:
- compiler: gcc
language: ruby
rvm: ruby-1.9.3-p551
env: BINDINGS=ruby
- compiler: clang
language: ruby
rvm: ruby-1.9.3-p551
env: BINDINGS=ruby CC=clang
- compiler: gcc
language: ruby
rvm: ruby-2.0.0-p647
env: BINDINGS=ruby
- compiler: clang
language: ruby
rvm: ruby-2.0.0-p647
env: BINDINGS=ruby CC=clang
- compiler: gcc
language: ruby
rvm: ruby-2.1.7
env: BINDINGS=ruby
- compiler: clang
language: ruby
rvm: ruby-2.1.7
env: BINDINGS=ruby CC=clang
- compiler: gcc
language: ruby
rvm: ruby-2.2.3
env: BINDINGS=ruby
- compiler: clang
language: ruby
rvm: ruby-2.2.3
env: BINDINGS=ruby CC=clang
- compiler: gcc
language: python
python: "2.7.10"
env: BINDINGS=python
- compiler: clang
language: python
python: "2.7.10"
env: BINDINGS=python CC=clang
- compiler: gcc
language: perl
perl: "5.18"
env: BINDINGS=perl
- compiler: clang
language: perl
perl: "5.18"
env: BINDINGS=perl CC=clang
- compiler: gcc
language: perl
perl: "5.14"
env: BINDINGS=perl
- compiler: clang
language: perl
perl: "5.14"
env: BINDINGS=perl CC=clang
- compiler: gcc
language: perl
perl: "5.10"
env: BINDINGS=perl
- compiler: clang
language: perl
perl: "5.10"
env: BINDINGS=perl CC=clang
- compiler: gcc
language: php
php: "5.5"
env: BINDINGS=php
- compiler: clang
language: php
php: "5.5"
env: BINDINGS=php CC=clang
- compiler: gcc
language: php
php: "5.4"
env: BINDINGS=php
- compiler: clang
language: php
php: "5.4"
env: BINDINGS=php CC=clang
- compiler: gcc
language: dotnet
env: BINDINGS=dotnet
- compiler: clang
language: dotnet
env: BINDINGS=dotnet CC=clang
- compiler: gcc
language: cpp
env: BINDINGS=cpp
- compiler: clang
language: cpp
env: BINDINGS=cpp CC=clang
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y lcov
- gem install coveralls-lcov
- if [ "$BINDINGS" != "none" ]; then sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list'; sudo apt-get update -qq; sudo apt-get install -yqq swig3.0/trusty-backports; fi
- if [ "$BINDINGS" == "python" ]; then sudo apt-get install -yqq python-dev; fi
- if [ "$BINDINGS" == "dotnet" ]; then sudo add-apt-repository ppa:directhex/monoxide -y; sudo apt-get update -qq; sudo apt-get install -yqq mono-devel mono-mcs nunit nunit-console; mozroots --import --sync; fi
install: true
before_script:
- if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi
script:
- if [ "$BINDINGS" == "none" ]; then scons test --variant=debug --coverage; else scons bindings=$BINDINGS test; fi
after_success:
- if [ "$BINDINGS" == "none" ]; then if [ "$CC" == "clang" ]; then llvm-cov gcov -o coverage.info build/debug/src/test_suite.gcda; else lcov --capture --directory build/debug/src --output-file coverage.info; fi; fi
- coveralls-lcov coverage.info
notifications:
irc:
channels:
- "irc.upstandinghackers.com#hammer"
use_notice: true
skip_join: true