forked from gost-engine/engine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
77 lines (71 loc) · 2.23 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
dist: bionic
os: linux
language: c
env:
global:
- PREFIX=${HOME}/opt
- PATH=${PREFIX}/bin:${PATH}
- LD_LIBRARY_PATH=${PREFIX}/lib:$LD_LIBRARY_PATH
- OPENSSL_BRANCH=OpenSSL_1_1_1-stable
addons:
apt:
update: true
matrix:
include:
- name: linux/gcc/x86_64
os: linux
compiler: gcc
- name: linux/gcc/ppc64le
os: linux
arch: ppc64le
compiler: gcc
- name: linux/gcc(ASan)/x86_64
env: SAN=-DASAN=1
os: linux
compiler: gcc
- name: linux/gcc+Coverity/x86_64 (cron)
env: COVERITY_SCAN_PROJECT_NAME="gost-engine" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="beldmit@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make"
if: type == cron
os: linux
compiler: gcc
script:
- mkdir build
- cd build
- cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ..
- curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
- name: linux/gcc/arm64
os: linux
arch: arm64
compiler: gcc
env: SAN=-DTSAN=1
- name: linux/clang/arm64
os: linux
arch: arm64
compiler: clang
env: SAN=-DTSAN=1
addons:
apt:
packages:
- clang-6.0
- name: osx/clang/x86_64
os: osx
compiler: clang
before_install:
- if [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get -y install cmake; fi
before_script:
- curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
- sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
- git clone --depth 1 -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git
- cd openssl
- ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} && travis_wait make -s -j$(nproc) all && make -s install_sw
- cd ..
script:
- mkdir build
- cd build
- cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${SAN} ..
- make
- if [ -n "$SAN" ] && [ -x ./bin/gost1sum ]; then
find .. -type f -name *.c -exec ./bin/gost1sum -v {} \; > .check;
./bin/gost1sum -vc .check;
fi
- make test CTEST_OUTPUT_ON_FAILURE=1