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 1e6f9af1
authored
Apr 19, 2020
by
Andrew Vereshchak
Committed by
GitHub
Apr 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(ci): improve database wait script (#12132)
1 parent
7b671d28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
.travis.yml
.travis.yml
View file @
1e6f9af
...
@@ -27,12 +27,13 @@ env:
...
@@ -27,12 +27,13 @@ env:
before_script
:
before_script
:
# setup docker
# setup docker
-
"
if
[
$MARIADB_VER
];
then
export
MARIADB_ENTRYPOINT=$TRAVIS_BUILD_DIR/test/config/mariadb;
fi"
-
if [ $MARIADB_VER ]; then export MARIADB_ENTRYPOINT=$TRAVIS_BUILD_DIR/test/config/mariadb; fi
-
"
if
[
$MYSQL_VER
];
then
export
MYSQLDB_ENTRYPOINT=$TRAVIS_BUILD_DIR/test/config/mysql;
fi"
-
if [ $MYSQL_VER ]; then export MYSQLDB_ENTRYPOINT=$TRAVIS_BUILD_DIR/test/config/mysql; fi
-
"
if
[
$POSTGRES_VER
]
||
[
$MARIADB_VER
]
||
[
$MYSQL_VER
];
then
docker-compose
up
-d
${POSTGRES_VER}
${MARIADB_VER}
${MYSQL_VER};
fi"
-
if [ $POSTGRES_VER ] || [ $MARIADB_VER ] || [ $MYSQL_VER ]; then docker-compose up -d ${POSTGRES_VER} ${MARIADB_VER} ${MYSQL_VER}; fi
-
"
if
[
$MARIADB_VER
];
then
docker
run
--link
${MARIADB_VER}:db
-e
CHECK_PORT=3306
-e
CHECK_HOST=db
--net
sequelize_default
giorgos/takis;
fi"
-
wait_for() { docker run --net sequelize_default jwilder/dockerize -timeout 2m -wait "$1"; }
-
"
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 [ $POSTGRES_VER ]; then wait_for tcp://${POSTGRES_VER}:5432; fi
-
"
if
[
$POSTGRES_VER
];
then
docker
run
--link
${POSTGRES_VER}:db
-e
CHECK_PORT=5432
-e
CHECK_HOST=db
--net
sequelize_default
giorgos/takis;
fi"
-
if [ $MARIADB_VER ]; then wait_for tcp://${MARIADB_VER}:3306; fi
-
if [ $MYSQL_VER ]; then wait_for tcp://${MYSQL_VER}:3306; fi
script
:
script
:
-
|-
-
|-
...
...
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