Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
9fa2ddefa1 | |||
cc6a3bb80b | |||
9326992f8b |
@ -1,13 +1,8 @@
|
|||||||
// Load the test config file
|
// Load the test config file
|
||||||
const configFile = process.env.CI ? './config-ci.json' : './config.json';
|
const configFile = './config.json';
|
||||||
const config = require(configFile);
|
|
||||||
|
|
||||||
if (process.env.CI !== undefined) {
|
|
||||||
console.log(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
config,
|
config: require(configFile),
|
||||||
tests: require('./base/tests'),
|
tests: require('./base/tests'),
|
||||||
promiseTestRunner: require('./base/adapterPromiseTestRunner')
|
promiseTestRunner: require('./base/adapterPromiseTestRunner')
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"mysql2": {
|
"mysql2": {
|
||||||
"driver": "mysql",
|
"driver": "mysql",
|
||||||
"connection": {
|
"connection": {
|
||||||
"host": "mysql",
|
"host": "mysql2",
|
||||||
"user": "test",
|
"user": "test",
|
||||||
"password": "test",
|
"password": "test",
|
||||||
"database": "test"
|
"database": "test"
|
||||||
|
@ -8,3 +8,6 @@ set -xe
|
|||||||
# Install sqlite3
|
# Install sqlite3
|
||||||
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
|
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
|
||||||
apk add --no-cache git yarn sqlite
|
apk add --no-cache git yarn sqlite
|
||||||
|
|
||||||
|
# Replace test config with docker config file
|
||||||
|
mv "./test/config-ci.json" "./test/config.json"
|
Loading…
Reference in New Issue
Block a user