From d3977e6167244132e1743079a794eb50bc6f44b7 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 27 Feb 2020 14:35:28 +0100 Subject: [PATCH] move node.js manual install to script --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7f8427a..99c4d8eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,8 @@ build apk: stage: build image: ubuntu:18.04 before_script: - - apt-get -y update && apt-get -y install build-essential ca-certificates curl git gpg-agent openjdk-8-jdk software-properties-common tar wget zipalign + - apt-get -y update && apt-get -y install build-essential ca-certificates curl git gpg-agent openjdk-8-jdk software-properties-common wget zipalign - chmod u+x $CI_PROJECT_DIR/gradlew - - wget https://nodejs.org/dist/latest-v10.x/node-v10.19.0-linux-x64.tar.gz && \ - tar xf node-v10.19.0-linux-x64.tar.gz -C /opt && \ - ln -s /opt/node-v10.19.0-linux-x64/bin/node /usr/bin/node && \ - ln -s /opt/node-v10.19.0-linux-x64/bin/npm /usr/bin/npm && \ - ln -s /opt/node-v10.19.0-linux-x64/bin/npx /usr/bin/npx - export BUILD_VERSION=$($CI_PROJECT_DIR/gradlew -q printVersionName --console=plain | tail -1) artifacts: paths: @@ -28,6 +23,11 @@ build apk: echo "deb https://dl.bintray.com/sobolevn/deb git-secret main" | tee -a /etc/apt/sources.list && \ wget -O - https://api.bintray.com/users/sobolevn/keys/gpg/public.key | apt-key add - - apt-get -y update && apt-get -y install yarn git-secret + - wget https://nodejs.org/dist/latest-v10.x/node-v10.19.0-linux-x64.tar.gz && \ + tar xf node-v10.19.0-linux-x64.tar.gz -C /opt && \ + ln -s /opt/node-v10.19.0-linux-x64/bin/node /usr/bin/node && \ + ln -s /opt/node-v10.19.0-linux-x64/bin/npm /usr/bin/npm && \ + ln -s /opt/node-v10.19.0-linux-x64/bin/npx /usr/bin/npx - git secret reveal - npm install -g react-native-cli - git clone https://github.com/lbryio/lbry-react-native