-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
118 lines (105 loc) · 2.42 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
language: cpp
dist: trusty
sudo: required
os:
- linux
# - osx
matrix:
include:
- os: linux
compiler: clang
env:
- COMPILER=g++
- os: linux
compiler: gcc
env:
- COMPILER=g++-4.8
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-4.8, valgrind]
- os: linux
compiler: gcc
env:
- COMPILER=g++-4.9
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-4.9, valgrind]
- os: linux
compiler: gcc
env:
- COMPILER=g++-5
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-5, valgrind]
- os: linux
compiler: gcc
env:
- COMPILER=g++-6
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-6, valgrind]
- os: linux
compiler: gcc
env:
- COMPILER=g++-7
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-7, valgrind]
# - os: osx
# compiler: clang
# osx_image: xcode8
# - g++ -v
# - cmake -v
install:
- uname -a
- CXX=$COMPILER
- sudo add-apt-repository ppa:kubuntu-ppa/backports -y
- sudo apt-get -qq update
- sudo apt-get install --only-upgrade cmake
- $CXX --version
- cmake --version
- export SPECIAL_EDITION=ON
## GTest
- wget -O gtest.tar.gz https://github.com/google/googletest/archive/release-1.7.0.tar.gz
- tar xf gtest.tar.gz
- cd googletest-release-1.7.0
- cmake -DBUILD_SHARED_LIBS=ON .
- make
- ls -l
- sudo cp -a include/gtest /usr/include
- sudo cp -a libgtest_main.* libgtest.* /usr/lib/
- cd ..
## Easylogging++
- wget https://github.com/abumq/easyloggingpp/archive/develop.zip
- unzip develop.zip
- cd easyloggingpp-develop
- cmake .
- make
- sudo make install
## Crypto++
- wget https://raw.githubusercontent.com/abumq/abumq.github.io/master/downloads/cryptocpp.tar.gz
- tar xf cryptocpp.tar.gz
- cd cryptopp-CRYPTOPP_5_6_5
- wget https://raw.githubusercontent.com/abumq/abumq.github.io/master/downloads/pem_pack.zip
- unzip pem_pack.zip
- cmake .
- make -j4
- sudo make install
## Build
- cd "${TRAVIS_BUILD_DIR}"
- mkdir build
- cd build
- cmake -Dtest=OFF -Dtravis=ON -Dspecial_edition=ON ..
- sudo make VERBOSE=1
- sudo make install
- cmake -Dtest=ON -Dspecial_edition=ON -Dtravis=ON ..
script: "sudo make VERBOSE=1 && ./residue-cpp-unit-tests"
branches:
only:
- master
- develop