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

Commit 130fb879 by Sushant Committed by GitHub

ci: install pg-native on demand (#9925)

1 parent 1ce34286
Showing with 11 additions and 8 deletions
......@@ -15,6 +15,8 @@ cache: yarn
install:
- npm install -g yarn
- yarn
- |-
if [ "$DIALECT" = "postgres-native" ]; then yarn add pg-native; fi
env:
global:
......@@ -22,6 +24,7 @@ env:
- SEQ_USER=sequelize_test
- SEQ_PW=sequelize_test
- SEQ_HOST=127.0.0.1
- COVERAGE=true
before_script:
# mount ramdisk
......@@ -37,32 +40,33 @@ before_script:
script:
- npm run lint
- "if [ $COVERAGE ]; then npm run cover && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info; else npm run test; fi"
- |-
if [ "$COVERAGE" = true ]; then npm run cover && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info; else npm run test; fi
jobs:
include:
- stage: test
node_js: '6'
env: DIALECT=sqlite COVERAGE=true
env: DIALECT=sqlite
- stage: test
node_js: '6'
sudo: required
env: MYSQL_VER=mysql-57 SEQ_MYSQL_PORT=8980 DIALECT=mysql COVERAGE=true
env: MYSQL_VER=mysql-57 SEQ_MYSQL_PORT=8980 DIALECT=mysql
- stage: test
node_js: '6'
sudo: required
env: POSTGRES_VER=postgres-10 SEQ_PG_PORT=8991 DIALECT=postgres COVERAGE=true
env: POSTGRES_VER=postgres-10 SEQ_PG_PORT=8991 DIALECT=postgres
- stage: test
node_js: '6'
sudo: required
env: POSTGRES_VER=postgres-95 SEQ_PG_PORT=8990 DIALECT=postgres COVERAGE=true
env: POSTGRES_VER=postgres-95 SEQ_PG_PORT=8990 DIALECT=postgres
- stage: test
node_js: '6'
sudo: required
env: POSTGRES_VER=postgres-95 SEQ_PG_PORT=8990 DIALECT=postgres-native COVERAGE=true
env: POSTGRES_VER=postgres-95 SEQ_PG_PORT=8990 DIALECT=postgres-native
- stage: test
node_js: '8'
env: DIALECT=sqlite
env: DIALECT=sqlite COVERAGE=false
# - stage: release
# node_js: '8'
# script:
......
......@@ -67,7 +67,6 @@
"mysql2": "^1.x",
"pg": "^7.x",
"pg-hstore": "^2.x",
"pg-native": "^3.0.0",
"pg-types": "^1.x",
"rimraf": "^2.x",
"sinon": "^6.3.3",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!