forked from demokratie-live/democracy-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
111 lines (108 loc) · 6.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
env:
global:
# SECRET
- secure: "JSEyfY3iPkO7AuK9n5JFmyWzrk1JJ8b3Eo6bHY8FqKq4d/ZcAhOWUSO4+sTdiSnFiQETY+0jzMgimawnCCsSnkO5VKupbpg0Zw1GJ4IQ1QgX+RlWSmXGUNYuSltTDXNXlrEQZYz+qs/PdK9nQwjItNwrhot+gmRfU2BROnn834wKt9P4rxLlM2Dtwd50Tq4Jwt8SVROGqs21ivGzBjgw46Najmj7rh+k2pRpJ9eTm8BGOJew92AzuB5iagBSIEuifgZx/vU42O4musjicqBvn/+PjtY5SX7DwpwO7tEjYpU74Vrn0WZQ5YVHbcplmw5ZsDmA8HaAQ3w2SW1jCEIGDosmWbjbnWIbs6St15ofqXUUigP+wpIoP3s5JiRDEJIh9jbIV6j1lkvdgLPVGMgPqHd6Xupu+pM3if7pOY8fLO9iFygTiFI3YOkElZY9t+iSz7HEm0a7qwF+4fCpORV7K6i5elAlJIbJGd/NEAkxr36mbItxaV3cgZv20SmxEb1F9i7nr1hWMcNrvmw8E7b7qHlq7rNBtS9Cd3EbuQbCLeoP+Zom7IuN2TLLHlDW34HVGSTh01YEf7rc2gFTklVzuO+lGp52PVduVzHBFbxiKukgZ+I38jDtEJFX685wqHBiBvUe/5zImjJsv9fBhYg4w+9600SKioOOjYQRBueOPzU="
# FASTLANE_PASSWORD (apple_id password)
- secure: "c7KcteRj+zaWdOzWDdjCQhYYzYxwXy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qg22phajnJ3r2s544CaPlm6/OrbOoGW5gV6i392u5z44Yk8hZP+OBKctUw671RTY02O3binYOi4FQZoq+V2w5x7KYQnzm8nlMwd8W4B/Oq27HuxYrVV/zfD0b+vQXhoyeMZRZ/hXCuYWkkXKl68qLMZy3XiJgOVXmDzBuHZULvjDPwZQ7DCj4ngL7cn23s3SpLSH1r8hG4RrqzEY4hWgOH0aWF2CzA7SKdEDYNudMlXVlFatd8oY6V6ityNDimXzWDl5nhvd8SKprVDbEwcR2TXbkm7YaLHOZH7pXtfs6oeDhTVELKVZjhIfFgQp0OmWJg72HMwRlu8LdJgylFeZC54QcLyO3ARxQF7J+b/afQHuxHEGsM/whwlW8JXu9p+/UcfwLijYeDIf75bg+tBl4ydVM0WcKSYfMVQAJlxb7uA1ZSNsd7H/6N45mmrXgJnw6tv3GI8I/CrynTr66GhfqMHEHq7iIVp5+RD5CfDji+p0qeS4SkLfoMJcl3Es4EYXavKTUOy5NNbMvOy1Mohi/B3pLRbhHuHouFnLdFVlYq4tqnJ525aiP2r3q7cIl0AqbMvUqoJD++BUy6PCHW2fkk4g/zMvJL+wY0Y="
matrix:
sudo: required
include:
# test
- os: linux
language: node_js
node_js:
- 8
install:
- yarn --version
- yarn install
script:
- yarn test
# android test
- if: type IN (pull_request)
os: linux
language: android
jdk: oraclejdk8
cache:
yarn: true
before_install:
# Allow more watched files
- echo fs.inotify.max_user_watches=2048000 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- cd android
- bundle install
- gem update --system
- bundle update fastlane
android:
components:
- tools
- platform-tools
# build tools
- build-tools-23.0.1
- build-tools-25.0.0
- build-tools-25.0.1
- build-tools-25.0.2
# - build-tools-25.0.3
- build-tools-26.0.1
- build-tools-26.0.2
- build-tools-26.0.3
- build-tools-27.0.3
- build-tools-28.0.3
# android
- android-23
- android-25
- android-26
- android-27
- android-28
# extra
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
- addon-google_apis-google-16
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- cd ..
- nvm install 8
- yarn --version
- yarn install
- openssl aes-256-cbc -k "$SECRET" -in .env.alpha.enc -out .env.alpha -d
- openssl aes-256-cbc -k "$SECRET" -in .env.beta.enc -out .env.beta -d
- openssl aes-256-cbc -k "$SECRET" -in .env.production.enc -out .env.production -d
- openssl aes-256-cbc -k "$SECRET" -in .env.internal.enc -out .env.internal -d
- openssl aes-256-cbc -k "$SECRET" -in android/Google_Play_Android_Developer.json.enc -out android/Google_Play_Android_Developer.json -d
- openssl aes-256-cbc -k "$SECRET" -in android/app/democracy2-release-key.keystore.enc -out android/app/democracy2-release-key.keystore -d
script:
- cd android
- bundle exec fastlane android test
# ios test
- if: type IN (pull_request)
osx_image: xcode10.1
language: objective-c
before_install:
- cd ios
- gem update --system
- bundle install
- bundle update fastlane
install:
- cd ..
- nvm install 8
- npm install -g yarn
- yarn --version
- yarn install
before_script:
- openssl aes-256-cbc -k "$SECRET" -in .env.alpha.enc -out .env.alpha -d
- openssl aes-256-cbc -k "$SECRET" -in .env.beta.enc -out .env.beta -d
- openssl aes-256-cbc -k "$SECRET" -in .env.production.enc -out .env.production -d
- openssl aes-256-cbc -k "$SECRET" -in .env.internal.enc -out .env.internal -d
script:
- cd ios
- bundle exec fastlane ios test
after_script:
- echo "BUILD FINISHED"