mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
parent
c53de16f38
commit
cf92d1c3bc
1 changed files with 11 additions and 9 deletions
|
@ -70,17 +70,19 @@ build:
|
|||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: ^0.29
|
||||
script: |
|
||||
sh - <<EOSTDIN
|
||||
script:
|
||||
# unset these since we only want to test via pkg-config
|
||||
unset LIBRARY_PATH
|
||||
unset CPATH
|
||||
unset LD_LIBRARY_PATH
|
||||
unset DYLD_FALLBACK_LIBRARY_PATH
|
||||
cc $CFLAGS $LDFLAGS test.c
|
||||
EOSTDIN
|
||||
- unset LIBRARY_PATH
|
||||
- unset CPATH
|
||||
- LD_LIBRARY_PATH_BAK=$LD_LIBRARY_PATH
|
||||
- unset LD_LIBRARY_PATH
|
||||
- DYLD_FALLBACK_LIBRARY_PATH_BAK=$DYLD_FALLBACK_LIBRARY_PATH
|
||||
- unset DYLD_FALLBACK_LIBRARY_PATH
|
||||
- cc $CFLAGS $LDFLAGS test.c
|
||||
|
||||
./a.out
|
||||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BAK
|
||||
- export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH_BAK
|
||||
- ./a.out
|
||||
env:
|
||||
# using pkg-config as pixman puts its headers in `include/pixman-1`
|
||||
LDFLAGS: $(pkg-config --libs glib-2.0)
|
||||
|
|
Loading…
Reference in a new issue