forked from authpass/authpass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (70 loc) · 2.06 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
60
61
62
63
64
65
66
67
68
69
70
addons:
ssh_known_hosts: gitlab.com
jobs:
include:
- os: osx
osx_image: xcode11
name: 'iOS Build'
# https://github.com/travis-ci/travis-conditions/issues/13#issuecomment-414734455
if: 1 != 1
env:
- TARGET_PLATFORM=ios
- GPG=gpg
- FASTLANE_SKIP_UPLOAD=true
- &androidrelease
name: 'Android Dev Build'
os: linux
language: android
#if: branch = master
# disabled for now, build via github actions.
if: 1 != 1
dist: trusty
android:
components:
- tools
- platform-tools
- android-28
- android-29
- build-tools-28.0.3
- build-tools-29.0.2
licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
- '.+'
- platforms;android-29
- platforms;android-28
before_install:
#- sdkmanager --version
- sudo apt-get install -y gnupg2
- yes | sdkmanager "platforms;android-27"
- yes | sdkmanager "ndk;21.0.6113669"
- yes | sdkmanager "ndk;20.0.5594570"
- time yes | sdkmanager "platforms;android-28"
- time yes | sdkmanager "platforms;android-29"
# - time yes | sdkmanager --licenses
- gem update --system
- gem install fastlane --no-document --quiet
env:
- TARGET_PLATFORM=android
- TARGET_VARIANT=playstoredev
- GPG=gpg2
- <<: *androidrelease
name: 'Android Stable Build'
if: branch = stable
env:
- TARGET_VARIANT=android
- GPG=gpg2
before_install:
#- openssl aes-256-cbc -K $encrypted_83630750896a_key -iv $encrypted_83630750896a_iv
# -in .travis_sec/BLACKBOX_KEY.txt.enc -out .travis_sec/BLACKBOX_KEY.txt -d
- which gpg
- which gpg2 || echo "gpg2 not found."
- gpg --version
- echo Test
install:
- openssl aes-256-cbc -K $encrypted_83630750896a_key -iv $encrypted_83630750896a_iv
-in .travis_sec/BLACKBOX_KEY.txt.enc -out .travis_sec/BLACKBOX_KEY.txt -d
- "$GPG -v --import < .travis_sec/BLACKBOX_KEY.txt"
- "./authpass/_tools/ci-install-deps.sh ${TARGET_PLATFORM}"
script:
- "./authpass/_tools/ci-release.sh ${TARGET_PLATFORM} ${TARGET_VARIANT:-$TARGET_PLATFORM}"