Skip to content
Snippets Groups Projects
Commit 74ee71d8 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #5153 from jtattermusch/fix_node_artifact_builder

Fix node artifact building on mac
parents fd0b2eac a24026f5
No related branches found
No related tags found
No related merge requests found
...@@ -28,15 +28,12 @@ ...@@ -28,15 +28,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NODE_VERSION=$1
source ~/.nvm/nvm.sh
set -ex set -ex
cd $(dirname $0) cd $(dirname $0)
NODE_VERSION="$1"
# make sure nvm is available
source ~/.nvm/nvm.sh || true
nvm install $NODE_VERSION nvm install $NODE_VERSION
npm install -g node-static npm install -g node-static
......
...@@ -47,8 +47,6 @@ then ...@@ -47,8 +47,6 @@ then
rvm use ruby-2.1 rvm use ruby-2.1
fi fi
nvm use 4 || true
cd /var/local/git/grpc cd /var/local/git/grpc
$RUN_COMMAND $RUN_COMMAND
...@@ -28,8 +28,12 @@ ...@@ -28,8 +28,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NODE_TARGET_ARCH=$1
source ~/.nvm/nvm.sh
set -ex set -ex
nvm use 4
cd $(dirname $0)/../.. cd $(dirname $0)/../..
rm -rf build rm -rf build
...@@ -42,6 +46,6 @@ node_versions=( 0.10.41 0.12.0 1.0.0 1.1.0 2.0.0 3.0.0 4.0.0 5.0.0 ) ...@@ -42,6 +46,6 @@ node_versions=( 0.10.41 0.12.0 1.0.0 1.1.0 2.0.0 3.0.0 4.0.0 5.0.0 )
for version in ${node_versions[@]} for version in ${node_versions[@]}
do do
node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=$1 node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=$NODE_TARGET_ARCH
cp -r build/stage/* artifacts/ cp -r build/stage/* artifacts/
done done
...@@ -28,8 +28,11 @@ ...@@ -28,8 +28,11 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
source ~/.nvm/nvm.sh
set -ex set -ex
nvm use 4
cd $(dirname $0)/../.. cd $(dirname $0)/../..
mkdir -p artifacts/ mkdir -p artifacts/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment