不要怂,就是干,撸起袖子干!

.travis.yml 864 Bytes
language: node_js

node_js:
  - "0.10"

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