-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathnoci_test.sh
executable file
·54 lines (48 loc) · 1.3 KB
/
noci_test.sh
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
#! /bin/bash
#
# Run tests that aren't ran on CI (yet)
#
# to run all no-ci tests
# $ (plotly.js) ./tasks/noci_test.sh
#
# to run jasmine no-ci tests
# $ (plotly.js) ./tasks/noci_test.sh jasmine
# to run image no-ci tests
# $ (plotly.js) ./tasks/noci_test.sh image
#
# -----------------------------------------------
EXIT_STATE=0
root=$(dirname $0)/..
# jasmine specs with @noCI tag
test_jasmine () {
npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$?
}
# mapbox image tests take too much resources on CI
#
# since the update to [email protected], we must use orca
# as mapbox-gl versions >0.22.1 aren't supported on [email protected] used in the
# 'old' image server
#
# cone traces don't render correctly in the imagetest container
test_image () {
$root/../orca/bin/orca.js graph \
$root/test/image/mocks/mapbox_* \
$root/test/image/mocks/gl3d_cone* \
--plotly $root/build/plotly.js \
--mapbox-access-token "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ" \
--output-dir $root/test/image/baselines/ \
--verbose || EXIT_STATE=$?
}
case $1 in
jasmine)
test_jasmine
;;
image)
test_image
;;
*)
test_jasmine
test_image
;;
esac
exit $EXIT_STATE