diff --git a/.travis.yml b/.travis.yml index f417bfc..64c19c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ script: - make package-all - ls -l ./build - make test + - make examples deploy: provider: releases diff --git a/Makefile b/Makefile index 5963c7f..d3de700 100644 --- a/Makefile +++ b/Makefile @@ -122,9 +122,18 @@ test: gotest cd tests && cmake . && make && CTEST_OUTPUT_ON_FAILURE=1 make test endif +ifneq ("$(HOSTOS)", "darwin") +examples: + cd examples && cmake . && make +else +examples: + ln -s ../$(OUT_OSX)/libuast.so ./examples/libuast.so && \ + cd examples && cmake . && make +endif + all: build-all package-all -.PHONY: clean build test install +.PHONY: clean build test examples install clean: rm -rf $(OUT_DIR)