-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
60 lines (58 loc) · 2.78 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
env:
global:
- secure: "RzQk/MPhK2G2kA7FwnnvNsno+wpfbrtTp4aLhzCuCSVfoix4DAhMdnbcp1RDKtpj+9YZXrm3urjaf349Zq5KBop666eAgq0fId0sxmIczNebhE32VHa6CvSur55Sro1ycbeUM8y1fof1OpzZ3tlQR9BW1pxAsZiMH/D1SM/L7mMcJIH++5MP2hntAE8RzD6UXv1Ww8uc3JUQJK00KffrpZjvSDR+7qnwjl2Tz4cclBZZIhg9s9tgcSBRCh52B+g24AM2oZNkFEjQMHh0HJ6eeZ25TrEL5RuzF8jR49ZQh8rnOfPxdA27S4XFiICRfXkDHYQCNDxIYZtMJmk8P6164I85p7eIbdU8CzJeSO+BeVQeKfuJU9hDHdGCBz9ufuzw3IMM9i03uN0YUiCjcv6tYJVqewMuEX8WAayiwAGHw8/vuhnVl1jlHWqOEFBz411FjeyNUrpecHUakMTVA1rzp/6YLNsaFR45LtyKLS8OX2R04bMNyZUBxUrIqAySYW3t2CvU3TTVtV2GfGJZIoS/w9EYVVlPOFxpaB3CARbtEk8/qNqpbegordy1aB7Hkh0F4L+P2iDJJ/sO2A8bYo5nmKq4W6AxKUYbhW00GeOnrpQe75ymy1UPuKueZzzT2YHXhPc7jifqwo1Q3gGzrkIOIGorW+4tAqQgpVxmKRdA1G4="
- COVERITY_SCAN_PROJECT_NAME="amq/myfind"
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="mkdir -p build; cd build; cmake .."
- COVERITY_SCAN_BUILD_COMMAND="cmake --build ."
- COVERITY_SCAN_BRANCH_PATTERN="coverity_scan"
language: c
compiler:
- gcc
- gcc-5
- clang-3.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test # gcc
- llvm-toolchain-precise-3.7 # clang
- george-edison55-precise-backports # cmake
packages:
- gcc-5
- clang-3.7
- cmake
- cmake-data
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- cmake --build .
# simple tests
- ln -s /etc/dest link
- ./myfind . -ls
- diff -s <(./myfind) <(find) || true
- diff -s <(./myfind -print) <(find -print) || true
- diff -s <(./myfind -ls) <(find -ls) || true
- diff -s <(./myfind -print -ls) <(find -print -ls) || true
- diff -s <(./myfind -type f) <(find -type f) || true
- diff -s <(./myfind -type d -ls) <(find -type d -ls) || true
- diff -s <(./myfind -type l -ls) <(find -type l -ls) || true
- diff -s <(./myfind -user travis) <(find -user travis) || true
- diff -s <(./myfind -user 1000) <(find -user 1000) || true
- diff -s <(./myfind -name main*) <(find -name main*) || true
- diff -s <(./myfind -path myfind.dir) <(find -path myfind.dir) || true
- diff -s <(./myfind -path *myfind.dir*) <(find -path *myfind.dir*) || true
- diff -s <(./myfind CMakeFiles . -ls) <(find CMakeFiles . -ls) || true
- diff -s <(./myfind . /etc) <(find . /etc) || true
- diff -s <(./myfind . /etc -ls) <(find . /etc -ls) || true # find is escaping unusual characters
# coverage
- if [ "$CC" == "gcc-5" ]; then gcov-5 CMakeFiles/*/*.o; fi
after_success:
- if [ "$CC" == "gcc-5" ]; then bash <(curl -s https://codecov.io/bash); fi
# cleanup
- cd $TRAVIS_BUILD_DIR
- rm -rf build
# coverity
- if ([ "$CC" == "gcc" ] && [ "$TRAVIS_BRANCH" == "coverity_scan" ]); then
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true;
fi