Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 130fb879
authored
Sep 15, 2018
by
Sushant
Committed by
GitHub
Sep 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: install pg-native on demand (#9925)
1 parent
1ce34286
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
.travis.yml
package.json
.travis.yml
View file @
130fb87
...
@@ -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:
...
...
package.json
View file @
130fb87
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment