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

.travis.yml 1.05 KB
language: node_js

sudo: false

node_js:
  - "4"

cache:
  directories:
    - node_modules

env:
  global:
    - CC=clang
    - CXX=clang++
    - npm_config_clang=1
  matrix:
    - DIALECT=mysql
    - DIALECT=postgres
    - DIALECT=postgres-native
    - DIALECT=sqlite

addons:
  apt:
    sources:
      - llvm-toolchain-precise-3.6
      - ubuntu-toolchain-r-test
    packages:
      - clang-3.6
      - g++-4.8

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: "6"
      env: COVERAGE=true DIALECT=mysql
    - node_js: "6"
      env: COVERAGE=true DIALECT=postgres
    - node_js: "6"
      env: COVERAGE=true DIALECT=postgres-native
    - node_js: "6"
      env: COVERAGE=true DIALECT=sqlite

branches:
  only:
  - master
  - v3