This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
62 lines (57 loc) · 1.87 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
matrix:
include:
- stage: Build
os: osx
env:
- BuildiOS="11"
- Xcode="9.2"
osx_image: xcode9.2
language: node_js
node_js: '8'
jdk: oraclejdk8
# LTS code name carbon => 8.x series. See https://github.com/nodejs/Release#lts_schedule
before_install: nvm install --lts=carbon
script:
- cd popcoin
- make
- tns build ios
- language: android
env:
- BuildAndroid="27"
os: linux
jdk: oraclejdk8
# LTS code name carbon => 8.x series. See https://github.com/nodejs/Release#lts_schedule
before_install: nvm install --lts=carbon
script:
- cd popcoin
- make
- tns build android --env.aot --env.uglify --env.snapshot
# Find the previous one, remove, post the new one.
- last=`curl "https://dashboard.applivery.com/api/builds/app/5b4489e0b5676eb6414b0580" -H "Authorization:$APPLIVERY_API_KEY" | jq -r '.response[] | select(.versionName == "From Travis")| select(.so == "android") | ._id'`
- curl "https://dashboard.applivery.com/api/builds/$last" -X DELETE -H "Authorization:$APPLIVERY_API_KEY" || true
- curl "https://dashboard.applivery.com/api/builds" -X POST -H "Authorization:$APPLIVERY_API_KEY"
-F app="5b4489e0b5676eb6414b0580" -F versionName="From Travis" -F os="android"
-F notes="Built from branch $TRAVIS_BRANCH, commit $TRAVIS_COMMIT."
-F package=@"platforms/android/app/build/outputs/apk/debug/app-debug.apk"
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-android-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- ".nvm"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
install:
- echo no | npm install -g [email protected]
- node --version
- tns --version
- tns usage-reporting disable
- tns error-reporting disable
notifications:
email: false