Skip to content

Commit 6c77dbc

Browse files
authored
Merge pull request #1 from ashb/circleci
Run tests and build via CircleCI
2 parents 57b4aa4 + 15861d4 commit 6c77dbc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

circle.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
dependencies:
2+
cache_directories:
3+
- jq-1.5
4+
pre:
5+
- |
6+
if [[ ! -d jq-1.5/BUILD ]]; then
7+
curl -L -fsS https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz | tar -xz
8+
cd jq-1.5
9+
./configure --disable-maintainer-mode --prefix=$PWD/BUILD
10+
make install-libLTLIBRARIES install-includeHEADERS
11+
fi
12+
test:
13+
post:
14+
- go build -v cmd/jqrepl.go
15+
- mv jqrepl $CIRCLE_ARTIFACTS/jqrepl

jq/jq.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ $ make install-libLTLIBRARIES install-includeHEADERS
1818
/*
1919
#cgo CFLAGS: -I ${SRCDIR}/../jq-1.5/BUILD/include
2020
#cgo LDFLAGS: ${SRCDIR}/../jq-1.5/BUILD/lib/libjq.a
21+
#cgo linux LDFLAGS: -lm
22+
2123
2224
#include <jq.h>
2325
#include <jv.h>

0 commit comments

Comments
 (0)