This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
82 lines (68 loc) · 1.83 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
sudo: false
branches:
only:
- master
dist: xenial
jobs:
include:
- stage: "Unit Test and Build PWA"
name: "Unit Tests"
language: node_js
node_js: "12.14.1"
services:
- xvfb
addons:
chrome: stable
install:
- npm install -g ionic cordova
- npm install
- ionic info
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: npm test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- name: "Build PWA"
language: node_js
node_js: "12.14.1"
services:
- xvfb
addons:
chrome: stable
install:
- npm install -g ionic firebase-tools
- npm install
- ionic info
script: ionic build --prod
- stage: "Build Android"
language: android
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
jdk: oraclejdk8
android:
components:
- build-tools-28.0.3
- android-28
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_install: nvm install 12.14.1
install:
- npm install -g ionic cordova
- npm install
- npm --version
- node --version
before_script:
- ionic cordova platform add android
- ionic info
script: ionic cordova build android --prod