File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Configuration
3
+ #
4
+
5
+ sudo : required
6
+ dist : trusty
7
+
8
+ notifications :
9
+ email : true
10
+
11
+ addons :
12
+ apt :
13
+ sources :
14
+ - ubuntu-toolchain-r-test
15
+ - google-chrome
16
+ packages :
17
+ - google-chrome-stable
18
+ - lib32stdc++6
19
+ - lib32z1
20
+
21
+ branches :
22
+ only :
23
+ - master
24
+ - travis
25
+
26
+ #
27
+ # Build Lifecycle:
28
+ #
29
+
30
+ before_install :
31
+ - nvm install node
32
+ - nvm use node
33
+ - npm install -g cordova ionic
34
+ - ionic state clear
35
+
36
+ install : npm install
37
+
38
+ before_script :
39
+ - export DISPLAY=:99.0
40
+ - sh -e /etc/init.d/xvfb start
41
+
42
+ script :
43
+ - npm run test-ci # unit tests
44
+ - npm run e2e # run e2e tests against ionic
45
+
46
+ after_success :
47
+ # Send coverage info off to cloud ppl
48
+ - ./node_modules/.bin/codecov
49
+
50
+ before_deploy :
51
+ # start install android
52
+ - wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
53
+ - tar -xzvf android-sdk_r24.2-linux.tgz
54
+ - echo "y" | ./android-sdk-linux/tools/android update sdk --no-ui --filter android-23,build-tools-23.0.1
55
+ - export ANDROID_HOME=${PWD}/android-sdk-linux
56
+ # license fail workaround: http://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences
57
+ - mkdir -p ${ANDROID_HOME}/licenses
58
+ - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
59
+ - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "${ANDROID_HOME}/licenses/android-sdk-preview-license"
60
+ # end install android
61
+ - ionic state restore
62
+ - ionic platform add android
63
+ - ionic build android
64
+ # `ionic build android` wraps `cordova build android`, which gives a legit exit code if it fails. Ionic does not; test apk exists.
65
+ - ls ./platforms/android/build/outputs/apk/android*.apk
66
+
67
+ deploy :
68
+ provider : script
69
+ script : .travis/deploy.sh
70
+ skip_cleanup : true
You can’t perform that action at this time.
0 commit comments