forked from sequelize/sequelize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 892 Bytes
/
.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
language: node_js
node_js:
- "0.10"
- "iojs-v1"
- "iojs-v2"
sudo: false
cache:
directories:
- node_modules
env:
- DIALECT=mysql
- DIALECT=postgres
- DIALECT=postgres-native
- DIALECT=sqlite
addons:
postgresql: "9.4"
before_script:
- "mysql -e 'create database sequelize_test;'"
- "psql -c 'create database sequelize_test;' -U postgres"
- "psql sequelize_test -c 'create extension postgis;' -U postgres"
script:
- "if [ $COVERAGE ]; then npm run cover && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info; else npm run test; fi"
matrix:
include:
- node_js: "0.12"
env: COVERAGE=true DIALECT=mysql
- node_js: "0.12"
env: COVERAGE=true DIALECT=postgres
- node_js: "0.12"
env: COVERAGE=true DIALECT=postgres-native
- node_js: "0.12"
env: COVERAGE=true DIALECT=sqlite
branches:
only:
- master
- v3