-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
36 lines (33 loc) · 1.09 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
---
language: c
matrix:
include:
- os: windows
script:
- echo "Windows"
- os: linux
dist: xenial
complier:
- gcc
addons:
apt:
packages:
- openssl
- valgrind
- check
- cppcheck
- make
- cmake
- lcov
- doxygen
- help2man
- clang-tidy
script:
- echo "UP"
- gcc -std=c11 -g -ftest-coverage --coverage -Wall -Wextra -pedantic -o tests_mnemonics -I./src/ -I./tests/ src/errorcodes.h src/errorcodes.c src/dictionary.c src/dictionary.h src/mnemonics.h src/mnemonics.c tests/test_mnemonics.c -lcrypto -lcheck -lpthread -lm -lrt -lsubunit
- ./tests_mnemonics
- valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all ./tests_mnemonics
- lcov --directory . --capture --output-file coverage.info
- lcov --list coverage.info
- cppcheck --error-exitcode=0 --enable=all --suppress=missingIncludeSystem ./src/*.c ./src/*.h
- clang-tidy src/*.h src/*.c -checks=*