Vmeda.Online/.travis.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

2021-02-25 14:44:00 +00:00
os: linux
dist: trusty
2021-08-31 15:43:19 +00:00
node_js: 14
jdk:
- oraclejdk11
2021-02-25 14:44:00 +00:00
git:
depth: 3
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
npm: true
directories:
- $HOME/.npm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
- $HOME/Library/Caches/Homebrew
2021-02-25 14:44:00 +00:00
before_install:
- nvm install
2021-02-25 14:44:00 +00:00
- node --version
- npm --version
- nvm --version
- npm ci
before_script:
- npx gulp
2021-02-25 14:44:00 +00:00
script:
2021-02-25 14:44:00 +00:00
- scripts/build.sh
2021-03-18 13:04:16 +00:00
jobs:
include:
- name: "Build Android"
2021-07-02 12:10:22 +00:00
if: env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank)
2021-03-18 13:04:16 +00:00
language: android
android:
components:
- tools
- platform-tools
- build-tools-29.0.3
- android-29
2021-03-18 13:04:16 +00:00
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
before_install:
- nvm install
- node --version
- npm --version
- nvm --version
- npm ci
- export JAVA_HOME_COPY=$JAVA_HOME
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- yes | sdkmanager "build-tools;32.0.0"
- export JAVA_HOME=$JAVA_HOME_COPY
addons:
apt:
packages:
- libsecret-1-dev
- name: "Build iOS"
2021-03-18 13:04:16 +00:00
language: node_js
2021-07-02 12:10:22 +00:00
if: env(BUILD_IOS) = 1 AND (env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank))
2021-03-18 13:04:16 +00:00
os: osx
osx_image: xcode14.2
2022-03-24 10:45:44 +00:00
addons:
homebrew:
packages:
- jq
before_cache:
- brew cleanup