only run in test mode if couch url is not passed

This commit is contained in:
Martin McKeaveney 2022-09-26 10:40:37 +01:00
parent 2102530efd
commit 1fdff22c64
3 changed files with 20 additions and 20 deletions

View File

@ -51,16 +51,16 @@ jobs:
- run: yarn bootstrap - run: yarn bootstrap
- run: yarn lint - run: yarn lint
- run: yarn build - run: yarn build
# - run: yarn test - run: yarn test
# env: env:
# CI: true CI: true
# name: Budibase CI name: Budibase CI
# - uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
# with: with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
# files: ./packages/server/coverage/clover.xml files: ./packages/server/coverage/clover.xml
# name: codecov-umbrella name: codecov-umbrella
# verbose: true verbose: true
- name: QA Core Integration Tests - name: QA Core Integration Tests
run: | run: |

View File

@ -1,5 +1,5 @@
const core = require("@budibase/backend-core") const core = require("@budibase/backend-core")
// const env = require("../environment") const env = require("../environment")
exports.init = () => { exports.init = () => {
const dbConfig = { const dbConfig = {
@ -7,10 +7,10 @@ exports.init = () => {
find: true, find: true,
} }
// if (env.isTest()) { if (env.isTest() && !env.COUCH_DB_URL) {
// dbConfig.inMemory = true dbConfig.inMemory = true
// dbConfig.allDbs = true dbConfig.allDbs = true
// } }
core.init({ db: dbConfig }) core.init({ db: dbConfig })
} }

View File

@ -1,11 +1,11 @@
const core = require("@budibase/backend-core") const core = require("@budibase/backend-core")
// const env = require("../environment") const env = require("../environment")
exports.init = () => { exports.init = () => {
const dbConfig = {} const dbConfig = {}
// if (env.isTest()) { if (env.isTest() && !env.COUCH_DB_URL) {
// dbConfig.inMemory = true dbConfig.inMemory = true
// dbConfig.allDbs = true dbConfig.allDbs = true
// } }
core.init({ db: dbConfig }) core.init({ db: dbConfig })
} }