mirror of
https://github.com/ivabus/pantry
synced 2024-11-12 19:45:19 +03:00
parent
e364a452e1
commit
533e481097
|
@ -14,18 +14,24 @@ dependencies:
|
||||||
zlib.net: '*'
|
zlib.net: '*'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script: |
|
script:
|
||||||
./configure $ARGS
|
- ./configure $ARGS
|
||||||
make shared
|
- make shared
|
||||||
make install
|
- make install
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --prefix="{{ prefix }}"
|
- --prefix="{{ prefix }}"
|
||||||
- --enable-reentrant
|
- --enable-reentrant
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
- cc testprog.c -o testprog -lcfitsio
|
||||||
cc testprog.c -o testprog -lcfitsio
|
- ./testprog > testprog.lis
|
||||||
./testprog > testprog.lis
|
- run: |
|
||||||
cmp testprog.lis testprog.out
|
cmp testprog.lis testprog.out
|
||||||
cmp testprog.fit testprog.std
|
cmp testprog.fit testprog.std
|
||||||
|
if: darwin
|
||||||
|
# archlinux doesn't have cmp or diff, but it has sha256sum
|
||||||
|
- run: |
|
||||||
|
test "$(sha256sum testprog.lis | awk '{print $1}')" = "$(sha256sum testprog.out | awk '{print $1}')"
|
||||||
|
test "$(sha256sum testprog.fit | awk '{print $1}')" = "$(sha256sum testprog.std | awk '{print $1}')"
|
||||||
|
if: linux
|
||||||
|
|
Loading…
Reference in a new issue