2021-02-25 14:44:00 +00:00
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: android
|
2020-10-06 07:44:27 +00:00
|
|
|
node_js: 12
|
2021-02-25 14:44:00 +00:00
|
|
|
|
|
|
|
if: env(DEPLOY) = 1
|
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
|
|
|
- build-tools-29.0.3
|
|
|
|
- android-28
|
|
|
|
- extra-google-google_play_services
|
|
|
|
- extra-google-m2repository
|
|
|
|
- extra-android-m2repository
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -rf $HOME/.cache/electron-builder/wine
|
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
|
|
|
|
|
|
cache:
|
|
|
|
npm: true
|
|
|
|
directories:
|
|
|
|
- $HOME/.npm
|
|
|
|
- $HOME/.cache/electron
|
|
|
|
- $HOME/.cache/electron-builder
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
- $HOME/.android/build-cache
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- nvm install 12
|
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- nvm --version
|
|
|
|
- npm ci
|
|
|
|
- npm install npm@^6 gulp -g
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- gulp
|
|
|
|
|
2020-10-06 07:44:27 +00:00
|
|
|
script:
|
2021-02-25 14:44:00 +00:00
|
|
|
- scripts/build.sh
|