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

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 ...@@ -15,6 +15,8 @@ cache: yarn
install: install:
- npm install -g yarn - npm install -g yarn
- yarn - yarn
- |-
if [ "$DIALECT" = "postgres-native" ]; then yarn add pg-native; fi
env: env:
global: global:
...@@ -22,6 +24,7 @@ env: ...@@ -22,6 +24,7 @@ env:
- SEQ_USER=sequelize_test - SEQ_USER=sequelize_test
- SEQ_PW=sequelize_test - SEQ_PW=sequelize_test
- SEQ_HOST=127.0.0.1 - SEQ_HOST=127.0.0.1
- COVERAGE=true
before_script: before_script:
# mount ramdisk # mount ramdisk
...@@ -37,32 +40,33 @@ before_script: ...@@ -37,32 +40,33 @@ before_script:
script: script:
- npm run lint - 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: jobs:
include: include:
- stage: test - stage: test
node_js: '6' node_js: '6'
env: DIALECT=sqlite COVERAGE=true env: DIALECT=sqlite
- stage: test - stage: test
node_js: '6' node_js: '6'
sudo: required 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 - stage: test
node_js: '6' node_js: '6'
sudo: required 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 - stage: test
node_js: '6' node_js: '6'
sudo: required 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 - stage: test
node_js: '6' node_js: '6'
sudo: required 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 - stage: test
node_js: '8' node_js: '8'
env: DIALECT=sqlite env: DIALECT=sqlite COVERAGE=false
# - stage: release # - stage: release
# node_js: '8' # node_js: '8'
# script: # script:
......
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
"mysql2": "^1.x", "mysql2": "^1.x",
"pg": "^7.x", "pg": "^7.x",
"pg-hstore": "^2.x", "pg-hstore": "^2.x",
"pg-native": "^3.0.0",
"pg-types": "^1.x", "pg-types": "^1.x",
"rimraf": "^2.x", "rimraf": "^2.x",
"sinon": "^6.3.3", "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!