This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (79 loc) · 2.91 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
sudo: true
language: cpp
cache:
apt: true
directories:
- "$HOME/.hunter"
env:
global:
- secure: hWKJ4JkKSNAK/CUBydgj2BROLx2xvvz+uCRNHhUspEoN+wKgMbo+rAJQoLaRBjWNwV/a3Cwu11vyrOwxSa0Lfq/SV59AyFhZt/gJntKkj2EYFO++tmKlwDGmnYMEvp/t/SpipMBgTOUQ+IvVGllfK+ExdaRgugJKXcfRv6qaMcHPV5VNEq0BbvwYvVJxcSx1kThQzroxE3T6hazGp+u8OuzGyWOQB7qsZuOk1nB2mDN3GuTREwWpT/+PwDN5uAAwWVUMXsr1Y12fqWbDu4mOZZtUzlAuzJrKB85m8tmPAUWNmz237T+9NAgXSn6vIeeoZeFp2h4E3F9vevWFrnah+uI40Em+E6FbevFOl7NKMiRUGiM7egHDsqAEED0A3ggAdRDmyhdV2TXAx7RF7tYOp1upCcB/ZDcttIoeeeUS0Nz113T6mOhg+LOXEwKQsEC95sa4udu2Ys5AoqL4R8R0i8c5wfh2SvzVWVkf/yRGTaxZfxGWsFnpxq4XGH1dZoHxunvf2Q0rmwm4I5wNksFy14Fj5naqhNpASzp+vjKqt89OW/84855PPt4Lf1ybk92vqpsJnRJgCdQPzpqq38MdlvOGTORw7v8LpfxUMwWAVw++EwuNwUbhDiP9tDT4Di0wBGTrro9crDYvckhOMPajuRyNOgPe6X+we6Y9pthlrag=
- secure: gAPpoPnC1mNdPvusyWvKzYayyjcdZrO8+Cp741roYpXxF/3ITwdv2EoC/TxJ24nGXq3EGQ1sDEuAhxzuXfjPoSXcBaBu78T6TBSmd2ChgGKH7J7gXnLX+HaR6G3TrI0rBWH8GIf64m6MY7ERBkoUjfhGjer0JiJPX7seDdm/T3EhSmxtWM082sSz41fGht/v3N8N0WlpdeFX7KynURCcWso2oXOuk3nbm+U/r4ihpADABlCUNnTefGEVG0QyqZebeLsjHzVcnJCZZrkKv+wu51qDEFXPLTr0FoJCkpHBFUaxmTShbookjWzxoele1v4f+1PZy7va9V1o7kgl2eqmDDBd0zW7x2cSPaS6JRswgnIkxbspMQ/4P3I6h02wl78TixHIfx1TBbiZYGtrsuxhCNmabmp5Wh1loxd70vu8/3BVdeINniiqGEbRW9YEWx5jnfvgTpxep/u1limf4qiM0TN8XTNz+1hJ9b5j2/0coVrXMiAfsEHiJdTreBstCkBSxwANxWMC6QkaWtbhwtSN+xQSx8pH0dZB120Fq7ZgVZ9d3S9L2MBfVjMs1PclPrUtAzqlYndxaCuCIjKfGA5xXlpD4U8JIT6IDlTBbp8rJ39UO3OPm0BDVf1xeBEQn3tLeMRv0dGjheDdGHVfxrwLuazXkfKf58cKCw1HegOaKaw=
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- git
- python3
- python3-pip
- python3-setuptools
env:
- _CC=gcc-5
- _CXX=g++-5
- os: linux
dist: trusty
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- git
- python3
- python3-pip
- python3-setuptools
env:
- _CC=clang-4.0
- _CXX=clang++-4.0
- os: osx
compiler: gcc
env:
- _CC=gcc
- _CXX=g++
- os: osx
compiler: clang
env:
- _CC=clang
- _CXX=clang++
install:
- |
# install python pip3 deps
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pyenv global 3.6
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
pip3 install --user pyyaml
fi
pip3 install --user requests gitpython cmake
script:
- export CC=$_CC
- export CXX=$_CXX
# build and install library
- mkdir build && cd build
- cmake .. -DTESTING=ON
- make -j2 -k
- ctest
- sudo make install
# build and install example
- cd ../example/sign-verify
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release
- make
- "./test1"