-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1014 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
dist: trusty
sudo: required
notifications:
email: false
language:
- cpp
compiler:
- gcc
- clang
before_install:
# install mpir dependencies
- sudo apt-get -qq update
- sudo apt-get install -y yasm
# install cpp-coverall
- pip install --user cpp-coveralls
install:
# install mpir library
- wget http://mpir.org/mpir-3.0.0.tar.bz2
- tar -xvjf mpir-3.0.0.tar.bz2
- cd mpir-3.0.0/
- ./configure CC=gcc #use gcc because clang is not visible to sudo
- make -j 2
- sudo make install
- cd ../
# install testu01
- wget http://simul.iro.umontreal.ca/testu01/TestU01.zip
- unzip TestU01.zip
- cd TestU01-*/
- ./configure CC=gcc #use gcc because clang is not visible to sudo
- make -j 2
- sudo make install
- cd ../
script:
- mkdir Debug
- cd Debug
- cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j 2
- cd ../
- mkdir Release
- cd Release
- cmake -DCMAKE_BUILD_TYPE=Release .. && make -j 2
- cd ../
after_success:
- cd Debug
- coveralls -i tests -i src -i inc