diff --git a/.travis.yml b/.travis.yml index b813a59eb..53ec7d431 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,16 +35,11 @@ install: - make install-lib-curl script: - make check - - if [[ "$QEMU_PLATFORM" ]]; then - docker run skydev-test ci-scripts/build.sh; - if before_deploy: - export VERSION="$(git describe --tags --exact-match HEAD 2> /dev/null)" - export ARCH="$(uname -m)" - export OS="$(uname -s)" - - if [[ "$QEMU_PLATFORM" ]]; then - docker run skydev-test -v $PWD:/go/src/github.com/skycoin/libskycoin ci-scripts/build.sh; - if + - make build - if [[ -z "$QEMU_PLATFORM" ]]; then make build-libc ; if - tar -c -z -f libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz -C build ./* deploy: diff --git a/Makefile b/Makefile index 2c296b059..7299c007f 100644 --- a/Makefile +++ b/Makefile @@ -93,14 +93,13 @@ $(BUILDLIB_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) go build -buildmode=c-archive -o $(BUILDLIB_DIR)/libskycoin.a $(LIB_FILES) mv $(BUILDLIB_DIR)/libskycoin.h $(INCLUDE_DIR)/ -## Build libskycoin C static library -build-libc-static: $(BUILDLIB_DIR)/libskycoin.a +build-libc-static: $(BUILDLIB_DIR)/libskycoin.a ## Build libskycoin C static library -## Build libskycoin C shared library -build-libc-shared: $(BUILDLIB_DIR)/libskycoin.so +build-libc-shared: $(BUILDLIB_DIR)/libskycoin.so ## Build libskycoin C shared library -## Build libskycoin C client libraries -build-libc: configure-build build-libc-static build-libc-shared +build-libc: configure-build build-libc-static build-libc-shared ## Build libskycoin C client libraries + +build: build-libc ## Build all C libraries ## Build libskycoin C client library and executable C test suites ## with debug symbols. Use this target to debug the source code diff --git a/README.md b/README.md index ad896ac0a..e3f5c4bb4 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,10 @@ After that, run `make docs` for a new docs generation. You can found the api doc |Target |Help| | :------------- | :----------: | +|build-libc-static |Build libskycoin C static library| +|build-libc-shared |Build libskycoin C shared library| +|build-libc |Build libskycoin C client libraries| +|build |Build all C libraries |test-libc |Run tests for libskycoin C client library| |docs |Generate documentation for all libraries| |docs-libc |Generate libskycoin documentation| @@ -163,3 +167,4 @@ After that, run `make docs` for a new docs generation. You can found the api doc |install-deps-libc-osx |Install locally dependencies for testing libskycoin| |format |Formats the code. Must have goimports installed (use make install-linters).| |clean-libc |Clean files generate by library| +