forked from sidorares/node-mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (82 loc) · 2.37 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
86
87
88
89
90
91
sudo: required
dist: trusty
services:
- docker
language: node_js
cache:
yarn: true
directories:
- node_modules
- $HOME/.yarn-cache
# Node.js version:
# we test only maintained LTS versions
# and lastest dev version
node_js:
- 8
- 10
- 12
- 13
env:
# use env `DOCKER_IMAGE to specify a docker image.
# env:
# `DOCKER_IMAGE` docker image identifier, like `mysql:8.0.18`, `datagrip/mysql:5.1`
# `MYSQL_PASSWORD` MySQL root password
#
# e.g.,
# use `DOCKER_IMAGE=mariadb:10.0.21`, to test MariaDB, :)
#
# or, test the old ones:
#
# - DOCKER_IMAGE=reducible/mysql:5.0.95
# - DOCKER_IMAGE=datagrip/mysql:5.1
#
# add more or remove any below
- DOCKER_IMAGE=mysql:8.0.18
- DOCKER_IMAGE=mysql:8.0.18 MYSQL_USE_TLS=1
- DOCKER_IMAGE=mysql:8.0.18 MYSQL_USE_COMPRESSION=1
- DOCKER_IMAGE=mysql:8.0.18 MYSQL_USE_TLS=1 MYSQL_USE_COMPRESSION=1
#- DOCKER_IMAGE=mysql:8.0.17
#- DOCKER_IMAGE=mysql:8.0.17 MYSQL_USE_COMPRESSION=1
- DOCKER_IMAGE=mysql:5.7
- DOCKER_IMAGE=mysql:5.7 MYSQL_USE_COMPRESSION=1
stages:
- lint
- test
# test matrix:
# we test <node.js version> - <env> combined cases,
# and the `include` parts below
jobs:
fast_finish: true
allow_failures:
- node_js: 13
include:
- &lint-staging
stage: lint
node_js: 8
env: # no env
script: &lint
- yarn --version
- yarn run lint
- <<: *lint-staging
node_js: 10
- <<: *lint-staging
node_js: 12
# - stage: test
# name: test handshake reducible/mysql:5.0.95
# node_js: 12
# env: DOCKER_IMAGE=reducible/mysql:5.0.95 MYSQL_PASSWORD=my-secret-pw
#######
# we use this test connect to server with a password
# only do this, we could reproduce issue #1053 on v2.0.0
# for later version, use this test handshake with auth 41
- stage: test
name: test handshake datagrip/mysql:5.1
node_js: 12
env: DOCKER_IMAGE=datagrip/mysql:5.1 MYSQL_PASSWORD=my-secret-pw FILTER=5.1only
script:
- docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e FILTER=$FILTER -e MYSQL_ROOT_PASSWORD=$MYSQL_PASSWORD -e MYSQL_DATABASE=test -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/examples/custom-conf:/etc/mysql/conf.d -v $PWD/examples/ssl/certs:/certs -p 33306:3306 $DOCKER_IMAGE
- MYSQL_PORT=33306 node tools/wait-up.js
- yarn --version
- MYSQL_PORT=33306 yarn run test:raw
notifications:
email: false