Skip to content

Commit

Permalink
build: enable deploy build on PR (#524)
Browse files Browse the repository at this point in the history
Still, release would be published while tag exists
  • Loading branch information
legendecas committed May 29, 2019
1 parent 2de7267 commit afc98b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
stages:
- test
- name: deploy
if: tag IS present
- deploy

language: c
os: linux
Expand Down Expand Up @@ -54,7 +53,7 @@ fast_finish: true

.deploy_job_template: &deploy_job_template
script:
- tools/build.py --buildtype release --clean --static --install --install-prefix $(pwd)/build/usr
- tools/build.py --buildtype release --clean --static --napi --install --install-prefix $(pwd)/build/usr
- tar -czf shadow-node-${TRAVIS_TAG}-$(uname)-$(uname -m).tar.gz -C build ./usr
deploy:
provider: releases
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

The Node.js runtime in shadow, enables N-API and vast Node.js packages on edge devices.

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6f931ad604184a409622825d8aacdf9f)](https://app.codacy.com/app/legendecas/ShadowNode?utm_source=github.com&utm_medium=referral&utm_content=Rokid/ShadowNode&utm_campaign=badger)
[![Build Status](https://travis-ci.org/Rokid/ShadowNode.svg?branch=master)](https://travis-ci.org/Rokid/ShadowNode)
[![Build Status](https://travis-ci.org/yodaos-project/ShadowNode.svg?branch=master)](https://travis-ci.org/yodaos-project/ShadowNode)
[![License](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat)](LICENSE)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FRokid%2Fshadow-node.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FRokid%2Fshadow-node?ref=badge_shield)

The project is another runtime for your [Node.js][] packages, while ShadowNode is designed to be used on memory limited devices. It's inspired and forked from the awesome project [Samsung/iotjs][].

## Quick Start

To get started with ShadowNode, you could download prebuilt binaries on [Release Page](https://github.com/Rokid/ShadowNode/releases) for following targets:
To get started with ShadowNode, you could download prebuilt binaries on [Release Page](https://github.com/yodaos-project/ShadowNode/releases) for following targets:

- Linux x64
- macOS x64
Expand All @@ -27,7 +25,7 @@ To get started with ShadowNode, you could download prebuilt binaries on [Release

##### Fetch source code
```sh
$ git clone https://github.com/Rokid/ShadowNode.git
$ git clone https://github.com/yodaos-project/ShadowNode.git
$ cd ShadowNode
```

Expand Down Expand Up @@ -102,7 +100,7 @@ start hacking with JavaScript:
[ShadowNode][] is Open Source software under the [Apache 2.0 license][].
Complete license and copyright information can be found within the code.

[ShadowNode]: https://github.com/Rokid/ShadowNode
[ShadowNode]: https://github.com/yodaos-project/ShadowNode
[Node.js]: https://github.com/nodejs/node
[Iot.js]: https://github.com/Samsung/iotjs
[Samsung/iotjs]: https://github.com/Samsung/iotjs
Expand Down
1 change: 1 addition & 0 deletions cmake/iotjs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ if(NOT BUILD_LIB_ONLY)

install(TARGETS ${TARGET_IOTJS} ${TARGET_LIB_IOTJS}
RUNTIME DESTINATION "${INSTALL_PREFIX}/bin"
ARCHIVE DESTINATION "${INSTALL_PREFIX}/lib"
LIBRARY DESTINATION "${INSTALL_PREFIX}/lib"
PUBLIC_HEADER DESTINATION "${INSTALL_PREFIX}/include/shadow-node")
else()
Expand Down

0 comments on commit afc98b6

Please sign in to comment.