update gitlab CI script
This commit is contained in:
parent
cf052f9c80
commit
1adf073de6
1 changed files with 1 additions and 18 deletions
|
@ -3,18 +3,12 @@ stages:
|
|||
- deploy
|
||||
- release
|
||||
|
||||
variables:
|
||||
REACT_NATIVE_BRANCH: "master"
|
||||
|
||||
build apk:
|
||||
stage: build
|
||||
image: lbry/android-base:platform-28
|
||||
before_script:
|
||||
- apt-get -y update && apt-get -y install build-essential ca-certificates curl git gpg-agent openjdk-8-jdk software-properties-common wget zipalign
|
||||
- wget -q 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 -fs /opt/node-v10.19.0-linux-x64/bin/node /usr/bin/node
|
||||
- ln -fs /opt/node-v10.19.0-linux-x64/bin/npm /usr/bin/npm
|
||||
- ln -fs /opt/node-v10.19.0-linux-x64/bin/npx /usr/bin/npx
|
||||
- chmod u+x $CI_PROJECT_DIR/gradlew
|
||||
- export ANDROID_SDK_ROOT=~/.buildozer/android/platform/android-sdk-23
|
||||
- export BUILD_VERSION=$($CI_PROJECT_DIR/gradlew -q printVersionName --console=plain | tail -1)
|
||||
|
@ -26,25 +20,14 @@ build apk:
|
|||
script:
|
||||
- export PATH=/usr/bin:$PATH
|
||||
- echo "$PGP_PRIVATE_KEY" | gpg --batch --import
|
||||
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
- 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
|
||||
- apt-get -y update && apt-get -y install git-secret
|
||||
- git secret reveal
|
||||
- npm install -g react-native-cli
|
||||
- cd ~/
|
||||
- git clone --single-branch --branch $REACT_NATIVE_BRANCH https://github.com/lbryio/lbry-react-native
|
||||
- cd lbry-react-native
|
||||
- chmod u+x bundle-android.sh
|
||||
- yarn
|
||||
- rm -rf android # temporary, should be a submodule init?
|
||||
- cp -rf $CI_PROJECT_DIR/ android/
|
||||
- cd android
|
||||
- chmod u+x ./release.sh
|
||||
- ./release.sh
|
||||
- mkdir -p $CI_PROJECT_DIR/bin/ && cp bin/*.apk $CI_PROJECT_DIR/bin/
|
||||
- cd $CI_PROJECT_DIR
|
||||
- cp bin/browser-$BUILD_VERSION-release__arm.apk /dev/null
|
||||
- cp bin/browser-$BUILD_VERSION-release__arm64.apk /dev/null
|
||||
|
||||
|
|
Loading…
Reference in a new issue