Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Commit e5fb78e

Browse files
author
FlorianDewulf
committed
Fix travisfile and database simulation to fit
1 parent 7066063 commit e5fb78e

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ node_js:
44
- "10"
55
- "8"
66
services:
7-
- docker
7+
- mysql
88
before_install:
9-
- docker-compose -f etc/docker-compose.yml up -d
9+
- mysql -e 'CREATE DATABASE test_database;'
1010
branches:
1111
only:
1212
- master

etc/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
command: --default-authentication-plugin=mysql_native_password
66
restart: always
77
ports:
8-
- "4000:3306"
8+
- "3306:3306"
99
container_name: typeorm_test_db
1010
environment:
11-
MYSQL_ROOT_PASSWORD: fakePasswordForTestPurpose
11+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
1212
MYSQL_DATABASE: test_database

package-lock.json

Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/specs/connector.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ describe('CherryTypeormConnector class', () => {
6969
expect(() => connector.checkOptions({
7070
'type': 'mysql',
7171
'host': 'localhost',
72-
'port': '4000',
72+
'port': '3306',
7373
'username': 'root',
74-
'password': 'fakePasswordForTestPurpose',
74+
'password': '',
7575
'database': 'test_database',
7676
'synchronize': false
7777
})).to.not.throw()

0 commit comments

Comments
 (0)