1 | 'use strict';
|
2 |
|
3 | const path = require('path');
|
4 |
|
5 | let knex = {};
|
6 |
|
7 | if (process.env.CI === 'true') {
|
8 | knex = {
|
9 | dialect: 'pg',
|
10 | connection: {
|
11 | host: 'localhost',
|
12 | user: 'postgres',
|
13 | database: 'travis_ci_test',
|
14 | },
|
15 | debug: false,
|
16 | };
|
17 | }
|
18 | else {
|
19 | knex = {
|
20 | dialect: 'pg',
|
21 | connection: {
|
22 | host: 'localhost',
|
23 | user: 'punchcard',
|
24 | database: 'punchcard_test',
|
25 | },
|
26 | debug: false,
|
27 | };
|
28 | }
|
29 |
|
30 | module.exports = {
|
31 | content: {
|
32 | directory: path.join(__dirname, '../tests/fixtures/content-types/good'),
|
33 | },
|
34 | knex,
|
35 | workflows: {
|
36 | directory: path.join(__dirname, '../tests/fixtures/workflows/good'),
|
37 | },
|
38 | storage: {
|
39 | dest: 'tests/public/files',
|
40 | temp: {
|
41 | dest: 'tests/public/tmp/',
|
42 | },
|
43 | },
|
44 | };
|