-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (78 loc) · 2.43 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
#lets see how this works | creates to build jobs
matrix:
include:
#android app
- language: android
jdk: oraclejdk8
node_js:
- 6.9.1
sudo: true
branches:
only:
- master
android:
components:
- build-tools-26.0.2
install:
- sudo apt-get install npm
- sudo apt-get install node
- cd reds-cordova
- sudo npm install
- sudo npm cache clean
- sudo npm install -g cordova
- echo y | android update sdk -u --filter android-22,android-26
- sudo npm cache clean -f
- sudo npm install -g n
- sudo n stable
- cordova build
script:
- sudo cordova prepare
- sudo cordova build android --release
release:
- exit 0
before_deploy:
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure GITHUB_TOKEN
file: "/home/travis/build/voxsar/reds/reds-cordova/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk"
keep-history: true
on:
branch: master
tags: true
#ios deployment test | works but sandboxed debug file cannot be used
- language: objective-c
os: osx
osx_image: xcode9.2
install:
- brew install npm
- brew install node
- cd reds-cordova
- sudo npm install
- sudo npm cache clean
- sudo npm install -g cordova
- sudo npm cache clean -f
- sudo npm install -g n
- sudo n stable
#- cordova build
script:
- echo y | sudo cordova platform add ios --no-insight
- sudo cordova build ios --release --no-insight
release:
- exit 0
before_deploy:
- git config --local user.name "voxsar"
- git config --local user.email "[email protected]"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure GITHUB_TOKEN
file: "/Users/travis/build/voxsar/reds/reds-cordova/platforms/ios/build/emulator/speakUpApp.app"
keep-history: true
on:
branch: master
tags: true
notifications:
email: false