-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
140 lines (140 loc) · 5.35 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
matrix:
include:
- stage: Lint
os: linux
language: node_js
node_js: "10"
env:
- Lint="eslint"
before_script: npm i
script: "./node_modules/.bin/eslint src/"
- stage: Build Android
os: linux
language: node_js
node_js: "10"
env:
- OS="Linux"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build android --path demo
- os: windows
language: node_js
node_js: "10"
env:
- OS="Windows"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build android --path demo
- os: osx
language: node_js
node_js: "10"
env:
- OS="MacOS"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build android --path demo
- stage: Release Build Android
os: windows
language: node_js
node_js: "10"
env:
- OS="Windows"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
- echo $KEYSTORE_BASE64_ENCODED > ~/keystoreBase64Encoded.txt
- base64 --decode ~/keystoreBase64Encoded.txt > ~/Release.keystore
script: tns build android --path demo --release --for-device --key-store-path ~/Release.keystore --key-store-password $KEY_STORE_PASSWORD --key-store-alias "$KEY_STORE_ALIAS" --key-store-alias-password $KEY_STORE_ALIAS_PASSWORD
- stage: Publish Build Android
os: windows
language: node_js
node_js: "10"
env:
- OS="Windows"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
- echo $KEYSTORE_BASE64_ENCODED > ~/keystoreBase64Encoded.txt
- base64 --decode ~/keystoreBase64Encoded.txt > ~/Release.keystore
- echo $UPDATE_VERSIONS_SCRIPT_BASE64_ENCODED > ~/updateVersionScriptBase64Encoded.txt
- pathToProject=$(pwd)
- base64 --decode ~/updateVersionScriptBase64Encoded.txt > $pathToProject/update-version.sh
- $pathToProject/update-version.sh platform android --path-to-n-project $pathToProject
script: tns publish android --path demo --release --for-device --key-store-path ~/Release.keystore --key-store-password $KEY_STORE_PASSWORD --key-store-alias "$KEY_STORE_ALIAS" --key-store-alias-password $KEY_STORE_ALIAS_PASSWORD
- stage: Build iOS
os: linux
language: node_js
node_js: "10"
env:
- OS="Linux"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build ios --path demo
- os: windows
language: node_js
node_js: "10"
env:
- OS="Windows"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build ios --path demo
- os: osx
language: node_js
node_js: "10"
env:
- OS="MacOS"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build ios --path demo
- stage: Release Build iOS
os: windows
language: node_js
node_js: "10"
env:
- OS="Windows"
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Remote Builds Travis CI"
- npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- cd demo && npm i
script: tns build ios --path demo --env.uglify --env.report --env.aot --release --for-device