forked from mariadb-corporation/mariadb-connector-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (78 loc) · 2.05 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
83
84
85
os: linux
dist: bionic
language: node_js
services: docker
node_js: 16
addons:
hosts:
- mariadb.example.com
before_install:
- git clone https://github.com/mariadb-corporation/connector-test-machine.git
install:
- |-
case $TRAVIS_OS_NAME in
windows)
choco install -y --force nodejs-lts
# force refresh path
export PATH=$(cmd.exe //c "refreshenv > nul & C:\Progra~1\Git\bin\bash -c 'echo \$PATH' ")
connector-test-machine/launch.bat -t "$srv" -v "$v" -d testn
;;
linux)
source connector-test-machine/launch.sh -t "$srv" -v "$v" -d testn -l "$local"
;;
esac
env:
global:
- RUN_LONG_TEST=1
jobs:
fast_finish: true
allow_failures:
- env: srv=build v=10.6
include:
- env: srv=mariadb v=10.5
os: windows
language: shell
- env: srv=mariadb v=10.2 local=1
- env: srv=mariadb v=10.3 local=1
- env: srv=mariadb v=10.4 local=1
- env: srv=mariadb v=10.5 local=1
- env: srv=mariadb v=10.5 local=1
node_js: 14
- env: srv=mariadb v=10.5 local=1
node_js: 12
- env: srv=mariadb v=10.6 BENCH=1 local=1
- if: type = push AND fork = false
env: srv=maxscale
- if: type = push AND fork = false
env: srv=mariadb-es v=10.5
- if: type = push AND fork = false
env: srv=skysql RUN_LONG_TEST=0
- if: type = push AND fork = false
env: srv=skysql-ha RUN_LONG_TEST=0
- if: type = push AND fork = false
env: srv=build v=10.6
- if: type = push AND fork = false
env: srv=mysql v=5.7
- if: type = push AND fork = false
env: srv=mysql v=8.0
script:
- npm install
- npm install nyc -g
- |-
case $TRAVIS_OS_NAME in
windows)
npm run coverage:test
;;
linux)
npm run test:lint
if [ -n "$BENCH" ] ; then
npm install promise-mysql mysql2
npm install microtime
npm run benchmark
else
npm run coverage:test
fi
;;
esac
after_success:
- if [ -z "$BENCH" ] ; then npm run coverage:report; fi