Skip to content
Newer
Older
100644 47 lines (38 sloc) 1.18 KB
754c2e5 @felixge Check in travis config
authored
1 language: node_js
2 node_js:
cc5a879 @dougwilson Support Node.js 0.6
dougwilson authored
3 - '0.6'
112bc97 @dresende Fixes TravisCI conf: no 0.4 version anymore, it's better to use 0.10 …
dresende authored
4 - '0.8'
5 - '0.10'
0881186 @dougwilson Support Node.js 0.12
dougwilson authored
6 - '0.12'
114859e @dougwilson build: io.js@1.8
dougwilson authored
7 - '1.8'
d64e8f6 @dougwilson build: io.js@2.5
dougwilson authored
8 - '2.5'
f298b33 @dougwilson build: io.js@3.3
dougwilson authored
9 - '3.3'
319b310 @dougwilson Support Node.js 4.x
dougwilson authored
10 - '4.2'
e578e8c @dougwilson Support Node.js 5.x
dougwilson authored
11 - '5.0'
b3220d3 @seanmonstar add mysql options for travis
seanmonstar authored
12
9d1aabb @grooverdan Run tests against MariaDB 10.1
grooverdan authored
13 matrix:
14 include:
15 - node_js: '4.2'
16 env: MYSQL_TYPE=mariadb MYSQL_HOST=localhost MYSQL_DATABASE=node_mysql MYSQL_USER=root MYSQL_PASSWORD=
17 addons: {mariadb: '10.1'}
18
741d1fd @dougwilson build: use Travis CI container infrastructure
dougwilson authored
19 sudo: false
20
10b1603 @dougwilson build: skip istanbul coverage on Node.js <= 0.8
dougwilson authored
21 before_install:
22 # Setup Node.js version-specific dependencies
23 - "test $TRAVIS_NODE_VERSION != '0.6' || npm rm --save-dev istanbul"
24 - "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
75072b1 @dougwilson lint: add basic eslint to build
dougwilson authored
25 - "test $TRAVIS_NODE_VERSION = '4.2' || npm rm --save-dev eslint"
10b1603 @dougwilson build: skip istanbul coverage on Node.js <= 0.8
dougwilson authored
26
b3220d3 @seanmonstar add mysql options for travis
seanmonstar authored
27 before_script:
9d1aabb @grooverdan Run tests against MariaDB 10.1
grooverdan authored
28 - "mysql -e 'create database node_mysql; select version();'"
b3220d3 @seanmonstar add mysql options for travis
seanmonstar authored
29
76012f6 @dougwilson build: add coverage reporting with istanbul
dougwilson authored
30 script:
10b1603 @dougwilson build: skip istanbul coverage on Node.js <= 0.8
dougwilson authored
31 # Run test script, depending on istanbul install
32 - "test ! -z $(npm -ps ls istanbul) || npm test"
33 - "test -z $(npm -ps ls istanbul) || npm run-script test-ci"
75072b1 @dougwilson lint: add basic eslint to build
dougwilson authored
34 - "test -z $(npm -ps ls eslint) || npm run-script lint"
76012f6 @dougwilson build: add coverage reporting with istanbul
dougwilson authored
35
36 after_script:
10b1603 @dougwilson build: skip istanbul coverage on Node.js <= 0.8
dougwilson authored
37 - "test -e ./coverage/lcov.info && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
76012f6 @dougwilson build: add coverage reporting with istanbul
dougwilson authored
38
b3220d3 @seanmonstar add mysql options for travis
seanmonstar authored
39 env:
9d1aabb @grooverdan Run tests against MariaDB 10.1
grooverdan authored
40 - MYSQL_TYPE=mysql MYSQL_HOST=localhost MYSQL_DATABASE=node_mysql MYSQL_USER=root MYSQL_PASSWORD=
b3220d3 @seanmonstar add mysql options for travis
seanmonstar authored
41
42 mysql:
43 adapter: mysql2
44 username: root
45 encoding: utf8
46 database: node_mysql
Something went wrong with that request. Please try again.