File tree Expand file tree Collapse file tree 3 files changed +50
-32
lines changed Expand file tree Collapse file tree 3 files changed +50
-32
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ branches:
3
3
- master
4
4
matrix :
5
5
include :
6
- - stage : " Lint"
7
- language : node_js
8
- os : linux
9
- node_js : " 8"
10
- script : cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
6
+ # - stage: "Lint"
7
+ # language: node_js
8
+ # os: linux
9
+ # node_js: "8"
10
+ # script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
11
11
- stage : " Build and Test"
12
12
env :
13
13
- BuildAndroid="28"
@@ -18,17 +18,17 @@ matrix:
18
18
script :
19
19
- cd src && npm i && npm run tsc && cd ../demo
20
20
- travis_wait travis_retry tns build android
21
- - os : osx
22
- env :
23
- - BuildiOS="12.0"
24
- - Xcode="10.0"
25
- osx_image : xcode10.0
26
- language : node_js
27
- node_js : " 8"
28
- jdk : oraclejdk8
29
- script :
30
- - cd src && npm i && npm run tsc && cd ../demo
31
- - travis_wait travis_retry tns build ios
21
+ # - os: osx
22
+ # env:
23
+ # - BuildiOS="12.0"
24
+ # - Xcode="10.0"
25
+ # osx_image: xcode10.0
26
+ # language: node_js
27
+ # node_js: "8"
28
+ # jdk: oraclejdk8
29
+ # script:
30
+ # - cd src && npm i && npm run tsc && cd ../demo
31
+ # - travis_wait travis_retry tns build ios
32
32
- os : linux
33
33
language : android
34
34
env :
@@ -38,27 +38,35 @@ matrix:
38
38
- nvm install 8
39
39
before_script :
40
40
- cd seed-tests && npm i
41
+ - android list targets
41
42
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
42
43
- emulator -avd test -no-audio -no-window &
43
44
- android-wait-for-emulator
44
- script : travis_wait travis_retry npm run test.android
45
- dist : precise
46
- - os : osx
47
- env :
48
- - TestVersion="latest"
49
- language : node_js
50
- node_js : " 8"
51
- jdk : oraclejdk8
52
- osx_image : xcode10.0
53
- before_script :
54
- - cd seed-tests && npm i
55
- script : travis_wait travis_retry npm run test.ios
45
+ script :
46
+ - npm run test.android
47
+ - cd seed-copy/src
48
+ - npm i
49
+ - npm run tsc
50
+ - cd ../demo
51
+ - tns build android
52
+ # dist: precise
53
+ # - os: osx
54
+ # env:
55
+ # - TestVersion="latest"
56
+ # language: node_js
57
+ # node_js: "8"
58
+ # jdk: oraclejdk8
59
+ # osx_image: xcode10.0
60
+ # before_script:
61
+ # - cd seed-tests && npm i
62
+ # script: travis_wait travis_retry npm run test.ios
56
63
57
64
android :
58
65
components :
59
66
- tools
60
67
- platform-tools
61
68
- build-tools-28.0.3
69
+ - android-21
62
70
- android-28
63
71
- extra-android-m2repository
64
72
- sys-img-armeabi-v7a-android-21
Original file line number Diff line number Diff line change @@ -141,12 +141,18 @@ describe('postclone', function () {
141
141
} ) ;
142
142
} ) ;
143
143
144
- // Xcode 8.3 is not supported by ios runtimes but using Xcode >=9.0 in travis fails to setup a simulator
145
- // Therefore, we stop running unit tests (which are unprofitable) until solution is found on iOS
146
- it ( 'should prepare a working demo and run test if Android ' , function ( done ) {
144
+ // Travis fails to setup a emulator since 15.03.2019. It might be a temporary bug so we should check again after a while
145
+ // Therefore, we stop running unit tests (which are unprofitable) until solution is found on Android
146
+ it ( 'should prepare a working demo and run test if iOS ' , function ( done ) {
147
147
var testsCommand = "cd " + constants . SEED_COPY_LOCATION + "/src && " ;
148
- testsCommand += testUtils . isAndroid ( ) ? "npm run test.android" : "npm run tsc && cd ../demo && tns build ios" ;
148
+ testsCommand += testUtils . isAndroid ( ) ? "npm run test.android" : "npm run test. ios" ;
149
149
exec ( testsCommand , function ( error , stdout , stderr ) {
150
+ console . log ( "===================ERROR====================" ) ;
151
+ console . log ( error ) ;
152
+ console . log ( "===================stdout====================" ) ;
153
+ console . log ( stdout ) ;
154
+ console . log ( "===================stderr====================" ) ;
155
+ console . log ( stderr ) ;
150
156
expect ( error ) . toBeNull ( ) ;
151
157
done ( ) ;
152
158
} ) ;
Original file line number Diff line number Diff line change 10
10
"ios" : " 5.2.0"
11
11
}
12
12
},
13
+ "repository" : {
14
+ "type" : " git" ,
15
+ "url" : " https://github.com/YourName/nativescript-yourplugin.git"
16
+ },
13
17
"scripts" : {
14
18
"tsc" : " tsc" ,
15
19
"build" : " npm run tsc && npm run build.native" ,
You can’t perform that action at this time.
0 commit comments