File tree Expand file tree Collapse file tree 2 files changed +30
-12
lines changed Expand file tree Collapse file tree 2 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ printf "Running eslint Dexie.Syncable src\n"
70
70
$( npm bin) /eslint --config " addons/Dexie.Syncable/src/.eslintrc.json" " addons/Dexie.Syncable/src"
71
71
printf " eslint ok.\n\n"
72
72
73
+ printf " Running eslint Dexie.Observable src\n"
74
+ $( npm bin) /eslint --config " addons/Dexie.Observable/src/.eslintrc.json" " addons/Dexie.Observable/src"
75
+ printf " eslint ok.\n\n"
76
+
73
77
#
74
78
# Rebuild
75
79
#
@@ -100,6 +104,18 @@ kill $TAIL_PID
100
104
101
105
printf " Browserstack tests passed.\n"
102
106
107
+ # test Dexie.Syncable
108
+ printf " Testing Dexie.Observable on browserstack\n"
109
+ cd addons/Dexie.Observable
110
+ echo . > karma-release.log
111
+ tail -f karma-release.log &
112
+ TAIL_PID=$!
113
+ npm run test:release > karma-release.log
114
+ kill $TAIL_PID
115
+ cd -
116
+
117
+ printf " Dexie.Observable Browserstack tests passed.\n"
118
+
103
119
# test Dexie.Syncable
104
120
printf " Testing Dexie.Syncable on browserstack\n"
105
121
cd addons/Dexie.Syncable
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ printf "Running eslint Dexie.Syncable src\n"
11
11
$( npm bin) /eslint --config " addons/Dexie.Syncable/src/.eslintrc.json" " addons/Dexie.Syncable/src"
12
12
printf " eslint ok.\n\n"
13
13
14
+ printf " Running eslint Dexie.Observable src\n"
15
+ $( npm bin) /eslint --config " addons/Dexie.Observable/src/.eslintrc.json" " addons/Dexie.Observable/src"
16
+ printf " eslint ok.\n\n"
17
+
14
18
#
15
19
# Build
16
20
#
@@ -41,17 +45,15 @@ printf "Testing Dexie\n"
41
45
$( npm bin) /karma start test/karma.travis.conf.js --single-run
42
46
printf " Dexie tests done.\n\n"
43
47
44
- # # TODO: add Dexie.Observable once we have tests for it
45
- # for addon in "${addons[@]}"
46
- # do
47
- addon=" Dexie.Syncable"
48
-
49
- dir=" ${ADDONS_DIR}${addon} "
50
- cd ${dir}
51
- printf " Testing ${addon} \n"
52
- $( npm bin) /karma start test/karma.travis.conf.js --single-run
53
- printf " ${addon} tests done.\n\n"
54
- cd -
55
- # done
48
+ # Run tests for addons
49
+ for addon in " ${addons[@]} "
50
+ do
51
+ dir=" ${ADDONS_DIR}${addon} "
52
+ cd ${dir}
53
+ printf " Testing ${addon} \n"
54
+ $( npm bin) /karma start test/karma.travis.conf.js --single-run
55
+ printf " ${addon} tests done.\n\n"
56
+ cd -
57
+ done
56
58
57
59
printf " Done.\n"
You can’t perform that action at this time.
0 commit comments