Skip to content

Commit b7f5b84

Browse files
committed
chore(ci): Update build matrix (sequelize#5918)
* chore(ci): Update build matrix * 🔥 Mariadb * Remove 0.12 from build matrix * Update .travis.yml
1 parent 75c3cb8 commit b7f5b84

35 files changed

+115
-179
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ coverage-*
1313
site
1414
docs/api/tmp.md
1515
ssce.js
16+
coverage

.travis.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
language: node_js
22

3-
node_js:
4-
- "0.10"
5-
- "0.12"
6-
- "iojs-v1"
7-
- "iojs-v2"
8-
93
sudo: false
104

5+
node_js:
6+
- "4"
7+
118
cache:
129
directories:
1310
- node_modules
1411

1512
env:
16-
- DIALECT=mysql
17-
- DIALECT=postgres
18-
- DIALECT=postgres-native
19-
- DIALECT=sqlite
20-
- DIALECT=mariadb
21-
- DIALECT=mssql
13+
global:
14+
- CC=clang
15+
- CXX=clang++
16+
- npm_config_clang=1
17+
- COVERALLS_REPO_TOKEN=751SiA6QhY5EH4P2ygq7JFWulqiD2ETXO
18+
- COVERALLS_PARALLEL=true
19+
matrix:
20+
- DIALECT=mysql
21+
- DIALECT=postgres
22+
- DIALECT=postgres-native
23+
- DIALECT=sqlite
24+
- DIALECT=mssql
25+
26+
addons:
27+
apt:
28+
sources:
29+
- llvm-toolchain-precise-3.6
30+
- ubuntu-toolchain-r-test
31+
packages:
32+
- clang-3.6
33+
- g++-4.8
2234

2335
addons:
2436
postgresql: "9.4"
@@ -32,10 +44,17 @@ script:
3244
- "npm test"
3345

3446
matrix:
35-
fast_finish: true
3647
include:
37-
- node_js: "0.10"
38-
env: COVERAGE=true
39-
allow_failures:
40-
- node_js: "0.10"
41-
env: COVERAGE=true
48+
- node_js: "6"
49+
env: COVERAGE=true DIALECT=mysql
50+
- node_js: "6"
51+
env: COVERAGE=true DIALECT=postgres
52+
- node_js: "6"
53+
env: COVERAGE=true DIALECT=postgres-native
54+
- node_js: "6"
55+
env: COVERAGE=true DIALECT=sqlite
56+
- node_js: "6"
57+
env: COVERAGE=true DIALECT=mssql
58+
59+
notifications:
60+
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ All tests are located in the `test` folder (which contains the
131131
lovely [Mocha](http://visionmedia.github.io/mocha/) tests).
132132

133133
```console
134-
$ npm run test-all || test-mysql || test-sqlite || test-mssql || test-postgres || test-mariadb || test-postgres-native
134+
$ npm run test-all || test-mysql || test-sqlite || test-mssql || test-postgres || test-postgres-native
135135

136136
$ # alternatively you can pass database credentials with $variables when testing
137137
$ DIALECT=dialect SEQ_DB=database SEQ_USER=user SEQ_PW=password npm test

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM node:5
1+
FROM node:6
22

33
RUN apt-get install libpq-dev
44

55
COPY package.json /
6+
ENV NPM_CONFIG_LOGLEVEL error
67
RUN npm install
78

89
WORKDIR /sequelize

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Sequelize
22

3-
[![Build Status](https://travis-ci.org/sequelize/sequelize.svg?branch=master)](https://travis-ci.org/sequelize/sequelize) [![Dependency Status](https://david-dm.org/sequelize/sequelize.svg)](https://david-dm.org/sequelize/sequelize) [![Test Coverage](https://codeclimate.com/github/sequelize/sequelize/badges/coverage.svg)](https://codeclimate.com/github/sequelize/sequelize)
3+
[![Build Status](https://travis-ci.org/sequelize/sequelize.svg?branch=master)](https://travis-ci.org/sequelize/sequelize)
4+
[![Coverage Status](https://coveralls.io/repos/github/sequelize/sequelize/badge.svg?branch=master)](https://coveralls.io/github/sequelize/sequelize?branch=master)
45
[![Bountysource](https://www.bountysource.com/badge/team?team_id=955&style=bounties_received)](https://www.bountysource.com/teams/sequelize/issues?utm_source=Sequelize&utm_medium=shield&utm_campaign=bounties_received)
56
[![Slack Status](http://sequelize-slack.herokuapp.com/badge.svg)](http://sequelize-slack.herokuapp.com)
67

7-
Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.
8+
Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.
89

910
[Documentation](http://sequelize.readthedocs.org/en/latest/)
1011

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [REMOVED] Support for `pool:false`
1212
- [REMOVED] Default transaction isolation level [#5094](https://github.com/sequelize/sequelize/issues/5094)
1313
- [ADDED] Add logging for mysql warnings, observant of the `showWarnings` option. [#5900](https://github.com/sequelize/sequelize/issues/5900)
14+
- [REMOVED] MariaDB dialect
1415

1516
## BC breaks:
1617
- `hookValidate` removed in favor of `validate` with `hooks: true | false`. `validate` returns a promise which is rejected if validation fails
@@ -21,6 +22,7 @@
2122
- (MySQL) `BIGINT` now gets converted to string when number is too big
2223
- Removed support for `pool:false`, if you still want to use single connection set `pool.max` to `1`
2324
- Removed default `REPEATABLE_READ` transaction isolation, use config option to explicitly set it
25+
- Removed MariaDB dialect - this was just a thin wrapper around MySQL, so using `dialect: 'mysql'` instead should work with no further changes
2426

2527
# 3.23.2
2628
- [FIXED] Type validation now works with non-strings due to updated validator@5.0.0 [#5861](https://github.com/sequelize/sequelize/pull/5861)

docs/api/model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ To obtain Instances for the newly created values, you will need to query for the
671671
| [options.hooks=true] | Boolean | Run before / after bulk create hooks? |
672672
| [options.individualHooks=false] | Boolean | Run before / after create hooks for each individual Instance? BulkCreate hooks will still be run if options.hooks is true. |
673673
| [options.ignoreDuplicates=false] | Boolean | Ignore duplicate values for primary keys? (not supported by postgres) |
674-
| [options.updateOnDuplicate] | Array | Fields to update if row key already exists (on duplicate key update)? (only supported by mysql & mariadb). By default, all fields are updated. |
674+
| [options.updateOnDuplicate] | Array | Fields to update if row key already exists (on duplicate key update)? (only supported by mysql). By default, all fields are updated. |
675675
| [options.transaction] | Transaction | Transaction to run query under |
676676
| [options.logging=false] | Function | A function that gets executed while running the query to log the sql. |
677677
| [options.returning=false] | Boolean | Append RETURNING * to get back auto generated values (Postgres only) |
@@ -775,7 +775,7 @@ of affected rows, while the second element is the actual affected rows (only sup
775775
| [options.sideEffects=true] | Boolean | Whether or not to update the side effects of any virtual setters. |
776776
| [options.individualHooks=false] | Boolean | Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. A select is needed, because the row data needs to be passed to the hooks |
777777
| [options.returning=false] | Boolean | Return the affected rows (only for postgres) |
778-
| [options.limit] | Number | How many rows to update (only for mysql and mariadb) |
778+
| [options.limit] | Number | How many rows to update (only for mysql) |
779779
| [options.logging=false] | Function | A function that gets executed while running the query to log the sql. |
780780
| [options.benchmark=false] | Boolean | Print query execution time in milliseconds when logging SQL. |
781781
| [options.transaction] | Transaction | Transaction to run query under |
@@ -792,4 +792,4 @@ Run a describe query on the table. The result will be return to the listener as
792792

793793
***
794794

795-
_This document is automatically generated based on source code comments. Please do not edit it directly, as your changes will be ignored. Please write on <a href="irc://irc.freenode.net/#sequelizejs">IRC</a>, open an issue or a create a pull request if you feel something can be improved. For help on how to write source code documentation see [JSDoc](http://usejsdoc.org) and [dox](https://github.com/tj/dox)_
795+
_This document is automatically generated based on source code comments. Please do not edit it directly, as your changes will be ignored. Please write on <a href="irc://irc.freenode.net/#sequelizejs">IRC</a>, open an issue or a create a pull request if you feel something can be improved. For help on how to write source code documentation see [JSDoc](http://usejsdoc.org) and [dox](https://github.com/tj/dox)_

docs/api/sequelize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var sequelize = new Sequelize('mysql://localhost:3306/database', {})
4545
| [username=null] | String | The username which is used to authenticate against the database. |
4646
| [password=null] | String | The password which is used to authenticate against the database. |
4747
| [options={}] | Object | An object with options. |
48-
| [options.dialect='mysql'] | String | The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql. |
48+
| [options.dialect='mysql'] | String | The dialect of the database you are connecting to. One of mysql, postgres, sqlite and mssql. |
4949
| [options.dialectModulePath=null] | String | If specified, load the dialect library from this path. For example, if you want to use pg.js instead of pg when connecting to a pg database, you should specify 'pg.js' here |
5050
| [options.dialectOptions] | Object | An object of additional options, which are passed directly to the connection library |
5151
| [options.storage] | String | Only used by sqlite. Defaults to ':memory:' |

docs/articles/getting-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ $ npm install --save sequelize
3535
$ npm install --save pg # for postgres
3636
$ npm install --save mysql # for mysql
3737
$ npm install --save sqlite3 # for sqlite
38-
$ npm install --save mariasql # for mariasql
3938
```
4039

4140
## Connecting to the database
@@ -45,7 +44,7 @@ Open the created directory in your favorite text editor and add a new file calle
4544
```js
4645
var Sequelize = require('sequelize')
4746
, sequelize = new Sequelize('database_name', 'username', 'password', {
48-
dialect: "mysql", // or 'sqlite', 'postgres', 'mariadb', 'mssql'
47+
dialect: "mysql", // or 'sqlite', 'postgres', 'mssql'
4948
port: 3306 // or 5432 (for postgres)
5049
});
5150

docs/docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $ npm install --save sequelize
77

88
# And one of the following:
99
$ npm install --save pg pg-hstore
10-
$ npm install --save mysql // For both mysql and mariadb dialects
10+
$ npm install --save mysql
1111
$ npm install --save sqlite3
1212
$ npm install --save tedious // MSSQL
1313
```
@@ -19,7 +19,7 @@ Sequelize will setup a connection pool on initialization so you should ideally o
1919
```js
2020
var sequelize = new Sequelize('database', 'username', 'password', {
2121
host: 'localhost',
22-
dialect: 'mysql'|'mariadb'|'sqlite'|'postgres'|'mssql',
22+
dialect: 'mysql'|'sqlite'|'postgres'|'mssql',
2323

2424
pool: {
2525
max: 5,

0 commit comments

Comments
 (0)