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 449a0d55
authored
Aug 13, 2017
by
Sushant
Committed by
GitHub
Aug 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: add stages docs/release stages (#8103)
1 parent
af8b3053
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
36 deletions
.travis.yml
.travis.yml
View file @
449a0d5
...
@@ -3,37 +3,42 @@ dist: trusty
...
@@ -3,37 +3,42 @@ dist: trusty
language
:
node_js
language
:
node_js
node_js
:
-
"
4"
-
"
6"
branches
:
branches
:
only
:
only
:
-
master
-
master
-
v3
-
v3
-
/^greenkeeper/.*$/
-
/^greenkeeper/.*$/
except
:
-
/^v\d+\.\d+\.\d+$/
cache
:
directories
:
-
node_modules
env
:
env
:
global
:
global
:
# mysql info
# mysql info
-
SEQ_MYSQL_DB
:
sequelize_test
-
SEQ_MYSQL_DB
=
sequelize_test
-
SEQ_MYSQL_USER
:
sequelize_test
-
SEQ_MYSQL_USER
=
sequelize_test
-
SEQ_MYSQL_PW
:
sequelize_test
-
SEQ_MYSQL_PW
=
sequelize_test
-
SEQ_MYSQL_HOST
:
127.0.0.1
-
SEQ_MYSQL_HOST
=
127.0.0.1
-
SEQ_MYSQL_PORT
:
8999
-
SEQ_MYSQL_PORT
=
8999
# postgres info
# postgres info
-
SEQ_PG_DB
:
sequelize_test
-
SEQ_PG_DB=sequelize_test
-
SEQ_PG_USER
:
sequelize_test
-
SEQ_PG_USER=sequelize_test
-
SEQ_PG_PW
:
sequelize_test
-
SEQ_PG_PW=sequelize_test
-
SEQ_PG_HOST
:
127.0.0.1
-
SEQ_PG_HOST=127.0.0.1
-
SEQ_PG_PORT
:
8998
-
SEQ_PG_PORT=8998
matrix
:
matrix
:
-
DIALECT=sqlite COVERAGE=true
-
DIALECT=sqlite COVERAGE=true
-
MYSQL_VER=mysql-57 DIALECT=mysql COVERAGE=true
-
MYSQL_VER=mysql-57 DIALECT=mysql COVERAGE=true
-
POSTGRES_VER=postgres-95 DIALECT=postgres COVERAGE=true
-
POSTGRES_VER=postgres-95 DIALECT=postgres COVERAGE=true
-
POSTGRES_VER=postgres-95 DIALECT=postgres-native COVERAGE=true
-
POSTGRES_VER=postgres-95 DIALECT=postgres-native COVERAGE=true
node_js
:
-
"
4"
-
"
6"
before_script
:
before_script
:
-
"
if
[
$POSTGRES_VER
]
||
[
$MYSQL_VER
];
then
docker-compose
up
-d
${POSTGRES_VER}
${MYSQL_VER};
fi"
-
"
if
[
$POSTGRES_VER
]
||
[
$MYSQL_VER
];
then
docker-compose
up
-d
${POSTGRES_VER}
${MYSQL_VER};
fi"
-
"
if
[
$MYSQL_VER
];
then
docker
run
--link
${MYSQL_VER}:db
-e
CHECK_PORT=3306
-e
CHECK_HOST=db
--net
sequelize_default
giorgos/takis;
fi"
-
"
if
[
$MYSQL_VER
];
then
docker
run
--link
${MYSQL_VER}:db
-e
CHECK_PORT=3306
-e
CHECK_HOST=db
--net
sequelize_default
giorgos/takis;
fi"
...
@@ -43,21 +48,25 @@ script:
...
@@ -43,21 +48,25 @@ 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
];
then
npm
run
cover
&&
bash
<(curl
-s
https://codecov.io/bash)
-f
coverage/lcov.info;
else
npm
run
test;
fi"
after_success
:
jobs
:
-
npm run semantic-release
include
:
-
stage
:
docs
branches
:
node_js
:
6
except
:
script
:
-
/^v\d+\.\d+\.\d+$/
-
npm run lint
-
npm run docs
deploy
:
deploy
:
provider
:
surge
provider
:
surge
project
:
./esdoc/
project
:
./esdoc/
domain
:
docs.sequelizejs.com
domain
:
docs.sequelizejs.com
skip_cleanup
:
true
skip_cleanup
:
true
on
:
on
:
branch
:
master
branch
:
master
node
:
6
-
stage
:
release
node_js
:
4
before_deploy
:
script
:
npm run lint
-
npm run docs
deploy
:
provider
:
script
script
:
TRAVIS_JOB_NUMBER=WORKAROUND.1 npm run semantic-release
on
:
branch
:
master
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