-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
.travis.yml
59 lines (52 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
os: linux
dist: jammy
node_js: 18
jdk:
- openjdk17
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
before_install:
- echo -e "machine github.com\n login $GIT_TOKEN" > ~/.netrc
- nvm install
- node --version
- npm --version
- nvm --version
- npm ci --no-audit
before_script:
- npx gulp
script:
- scripts/build.sh
jobs:
include:
- name: "Build Android"
if: env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank)
language: java
env:
- ANDROID_PLATFORM_VERSION=33
- ANDROID_BUILD_TOOLS_VERSION="33.0.2"
addons:
apt:
packages:
- libsecret-1-dev
- name: "Build iOS"
language: node_js
if: env(BUILD_IOS) = 1 AND (env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank))
os: osx
osx_image: xcode14.2
addons:
homebrew:
packages:
- jq
before_cache:
- brew cleanup