2014-02-22 10:29:21 -07:00
|
|
|
language: c
|
2014-04-22 10:40:19 -07:00
|
|
|
env:
|
2014-05-31 07:19:14 -07:00
|
|
|
global:
|
2014-08-07 05:07:26 -07:00
|
|
|
- PROJECT_ROOT="$(pwd)"
|
|
|
|
- CI_SCRIPTS="$PROJECT_ROOT/.ci"
|
2014-05-31 07:19:14 -07:00
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "QEz92NyItkzQu52kCFD928jEwUYnA2OIgSyeNrp+Y3gm5rOmSZerY8hGiXyNZxocap9+qIPCapRRYU3ZYKWZPeucWMLN3aIjxAFdhugKbnmNYE1jFugb6b8N3SxiX/3206NHXlYaz0OZhh6OBAFmPUXamJC8OrWVgPNPo7wv4UQ="
|
|
|
|
matrix:
|
2014-08-07 05:07:26 -07:00
|
|
|
- CI_TARGET=clang-asan
|
2014-09-29 05:43:52 -07:00
|
|
|
- CI_TARGET=gcc
|
|
|
|
- CI_TARGET=gcc-32
|
2014-08-07 05:07:26 -07:00
|
|
|
- CI_TARGET=clint
|
|
|
|
- CI_TARGET=coverity
|
2014-07-16 10:35:12 -07:00
|
|
|
before_install:
|
|
|
|
# Adds user to a dummy group.
|
|
|
|
# That allows to test changing the group of the file by `os_fchown`.
|
|
|
|
- sudo groupadd chown_test
|
|
|
|
- sudo usermod -a -G chown_test ${USER}
|
2014-03-13 08:11:03 -07:00
|
|
|
script:
|
2014-07-16 10:35:12 -07:00
|
|
|
# This will pass the environment variables down to a bash process which runs
|
|
|
|
# as $USER, while retaining the environment variables defined and belonging
|
|
|
|
# to secondary groups given above in usermod.
|
|
|
|
- sudo -E su ${USER} -c "sh -e \"${CI_SCRIPTS}/${CI_TARGET}.sh\""
|