Skip to content
Snippets Groups Projects

Add CI with FastLane to Android Gitter build

Merged Jason Yavorska requested to merge (removed):master into master
1 file
+ 9
8
Compare changes
  • Side-by-side
  • Inline
+ 9
8
@@ -35,15 +35,16 @@ stages:
build:
stage: build
script:
# build assets
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get --quiet install --yes nodejs
- git clone https://gitlab.com/gitlab-org/gitter/webapp.git
- cd webapp && npm install
- npm run build-android-assets
# fetch assets
- wget --output-document=artifacts.zip --quiet "https://gitlab.com/api/v4/projects/3601513/jobs/artifacts/master/download?job=package"
- unzip artifacts.zip
- mkdir -p output/assets
- tar xvfz ../assets.tar.gz -C output/assets/
- mkdir -p app/src/main/assets/www
- mv output/assets/* app/src/main/assets/www/
# move assets for android build
- cd .. && mkdir -p app/src/main/assets/www
- mv webapp/output/android/www/* app/src/main/assets/www/
- cd .. &&
# build binaries
- bundle exec fastlane build
artifacts:
Loading