forked from alientronics/fleetany-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.14 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
language: android
sudo: required
node_js:
-"4.1"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- google-chrome
code_climate:
repo_token: 07f0186ba388873f07c7e0e530c98e720277303f54bbc4f9be87d2f99e203272
android:
components:
- extra-android-support
- extra-google-google_play_services
- extra-android-m2repository
- extra-google-m2repository
- platform-tools
- tools
- build-tools-23.0.1
- android-23
before_install:
- nvm install stable
- npm install -g npm
- npm install -g cordova ionic
install:
- npm install
before_script:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- ionic platform add android
- ionic state restore
- ionic build android
- npm test
after_script:
- npm install -g codeclimate-test-reporter
- sed -i -e 's/\/home\/travis\/build\/alientronics\/fleetany-mobile\/node_modules\/angular2-template-loader\/index.js!//' coverage/lcov.info
- codeclimate-test-reporter < coverage/lcov.info
notifications:
email:
recipients:
on_success: change
on_failure: always