forked from knex/knex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.7 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
# .travis.yml
language: node_js
dist: trusty
sudo: required
cache:
directories:
- "node_modules"
matrix:
include:
- node_js: "10"
env: DB="mssql mysql mysql2 postgres sqlite3" CXX=g++-4.8 KNEX_TEST_TIMEOUT=60000
- node_js: "8"
env: DB="mssql mysql mysql2 postgres sqlite3" CXX=g++-4.8 KNEX_TEST_TIMEOUT=60000
- node_js: "7"
env: DB="mssql mysql mysql2 postgres sqlite3" CXX=g++-4.8 KNEX_TEST_TIMEOUT=60000
- node_js: "6"
env: DB="mssql mysql mysql2 postgres sqlite3" CXX=g++-4.8 KNEX_TEST_TIMEOUT=60000
- node_js: "10" # node_js env is just used to have npm command availabe, all test code is ran in docker container
env: TEST_ORACLEDB=true NODE_VER=10 KNEX_TEST_TIMEOUT=60000
- node_js: "10"
env: TEST_ORACLEDB=true NODE_VER=8 KNEX_TEST_TIMEOUT=60000
- node_js: "10"
env: TEST_ORACLEDB=true NODE_VER=6 KNEX_TEST_TIMEOUT=60000
install:
- if [ -z $TEST_ORACLEDB ]; then npm i; fi
before_script:
- if [ -z $TEST_ORACLEDB ]; then psql -c 'create database knex_test;' -U postgres; fi
- if [ -z $TEST_ORACLEDB ]; then mysql -e 'create database knex_test;'; fi
- if [ -z $TEST_ORACLEDB ]; then npm run mssql:init; fi
- if [ -z $TEST_ORACLEDB ]; then docker ps -a; fi
- if [ -z $TEST_ORACLEDB ]; then netstat -tulpn; fi
script:
- if [ -z $TEST_ORACLEDB ]; then npm test; else npm run oracledb:test; fi
after_success:
- if [ -z $TEST_ORACLEDB ]; then npm run coveralls; fi
notifications:
email: false
services:
- mysql
addons:
postgresql: '9.6'
apt:
sources:
- mysql-5.7-trusty
packages:
- g++-4.8
- gcc-4.8
- libmysqlclient-dev
- libmysqlclient20
- mysql-community-client
- mysql-common
- mysql-community-server