-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.travis.yml
53 lines (52 loc) · 1.32 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
language: cpp
compiler:
- clang
dist: trusty
before_install:
- sudo add-apt-repository ppa:kubuntu-ppa/backports -y
- sudo apt-get -qq update
- sudo apt-get install -y libssl-dev libgtest-dev php5-cli valgrind
- sudo apt-get install --only-upgrade cmake
- cmake --version
- g++ --version
# Crypto++ (We manually install it because we need Pem Pack as well)
- wget https://amrayn.github.io/downloads/cryptocpp.tar.gz
- tar xf cryptocpp.tar.gz
- cd cryptopp-CRYPTOPP_5_6_5
- wget https://amrayn.github.io/downloads/pem_pack.zip
- unzip pem_pack.zip
- cmake .
- make
- sudo make install
# 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
- sudo cp -a include/gtest /usr/include
- sudo cp -a libgtest_main.so libgtest.so /usr/lib/
- cd ..
## Easylogging++
- wget https://github.com/amrayn/easyloggingpp/archive/master.zip
- unzip master.zip
- cd easyloggingpp-master
- cmake .
- make
- sudo make install
## Build
- cd "${TRAVIS_BUILD_DIR}"
- pwd
- php build.php # build mine headers
- mkdir build
- cd build
- pwd
- ls -l
- ls -l ..
- cmake -Dtest_main_header=ON -Dtest_wstring_conversions=OFF ..
- make
script: "./mine-unit-tests"
branches:
only:
- master
- develop