-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (39 loc) · 929 Bytes
/
.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
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- python3
install:
# Install pip
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- sudo python3.4 get-pip.py
# Install Conan.
- sudo pip install conan
# Automatic detection of your arch, compiler, etc.
- conan user
# Install cpp-coveralls.
- sudo pip install cpp-coveralls
script:
# Build hello-world library.
- cd helloworld
- mkdir build && cd build
- conan export .. ugnelis/stable
- conan install .. -s build_type=Debug -o coverage=True --build missing
- conan build -sf .. ..
# Go back to project root.
- cd ../../
# Build app binary.
- cd app
- mkdir build && cd build
- conan export .. ugnelis/stable
- conan install .. -s build_type=Debug --build missing
- conan build -sf .. ..
after_success:
- cd ../../
- coveralls -E .*CMakeFiles.* -e helloworld/test/ > coveralls.log