forked from mariadb-corporation/mariadb-connector-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (76 loc) · 2.18 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
sudo: false
language: node_js
services:
- docker
addons:
hosts:
- mariadb.example.com
before_script:
# Disable services enabled by default
- sudo /etc/init.d/mysql stop
before_install:
- chmod +x .travis/script.sh
install:
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
# generate SSL certificates
- mkdir tmp
- chmod +x .travis/gen-ssl.sh
- chmod +x .travis/build/build.sh
- chmod +x .travis/build/docker-entrypoint.sh
- chmod 777 .travis/build/
- .travis/gen-ssl.sh mariadb.example.com tmp
- export PROJ_PATH=`pwd`
- export SSLCERT=$PROJ_PATH/tmp
- export TEST_SSL_CA_FILE=$SSLCERT/server.crt
- export TEST_SSL_CLIENT_KEY_FILE=$SSLCERT/client.key
- export TEST_SSL_CLIENT_CERT_FILE=$SSLCERT/client.crt
- export TEST_SSL_CLIENT_KEYSTORE_FILE=$SSLCERT/client-keystore.p12
env:
global:
- TEST_PORT=3305
- TEST_HOST=mariadb.example.com
- MUST_USE_TCPIP=1
- RUN_LONG_TEST=1
matrix:
allow_failures:
- node_js: "12"
env: DB=build SKIP_LEAK=1
include:
- node_js: "12"
env: DB=build SKIP_LEAK=1
- node_js: "12"
env: SKYSQL=true SKIP_LEAK=1
- node_js: "10"
env: DB=mariadb:10.5
- node_js: "12"
env: DB=mariadb:10.5 SKIP_LEAK=1 ADDITIONAL_CONF=--version=10.5.199
- node_js: "14"
env: DB=mariadb:10.5 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.5 SKIP_LEAK=1 TEST_COLLATION=cp1251_general_ci
- node_js: "12"
env: DB=mariadb:10.5 LINT=1 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.5 BENCH=1 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.5 MAXSCALE_VERSION=2.5.4 MAXSCALE_TEST_DISABLE=true SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.1 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.2 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.3 SKIP_LEAK=1
- node_js: "12"
env: DB=mariadb:10.4 SKIP_LEAK=1
- node_js: "12"
env: DB=mysql:5.7 SKIP_LEAK=1
- node_js: "12"
env: DB=mysql:8.0 SKIP_LEAK=1 ADDITIONAL_CONF=--default-authentication-plugin=mysql_native_password
notifications:
email: false
script:
- npm install
- npm install nyc -g
- travis_retry .travis/script.sh
after_success:
- if [ -z "$BENCH" ] ; then npm run coverage:report; fi