diff --git a/.travis.yml b/.travis.yml index c79b4af4..5560e288 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ language: node_js node_js: - - "8.2.1" + - "8.9.4" install: - yarn install -scripts: - - npm test +env: + - DB_TYPE="sqlite" DB_DATABASE="./mydb.sql" DB_LOGGING=false +script: + - npm start test + - npm start test.integration + - npm start test.e2e - npm start build notifications: email: false diff --git a/appveyor.yml b/appveyor.yml index 3bc1c57b..d9d00e55 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,8 @@ environment: nodejs_version: "8" + DB_TYPE: "sqlite" + DB_DATABASE: "./mydb.sql" + DB_LOGGING: false install: - ps: Install-Product node $env:nodejs_version @@ -9,4 +12,6 @@ build_script: - npm start build test_script: - - npm test + - npm start test + - npm start test.integration + - npm start test.e2e diff --git a/test/e2e/api/users.test.ts b/test/e2e/api/users.test.ts index 1290b549..51e4b2e1 100644 --- a/test/e2e/api/users.test.ts +++ b/test/e2e/api/users.test.ts @@ -3,7 +3,7 @@ import * as request from 'supertest'; import { User } from '../../../src/api/models/User'; import { CreateBruce } from '../../../src/database/seeds/CreateBruce'; -import { runSeeder } from '../../../src/lib/seed'; +import { runSeed } from '../../../src/lib/seed'; import { closeDatabase } from '../../utils/database'; import { fakeAuthenticationForUser } from '../utils/auth'; import { BootstrapSettings } from '../utils/bootstrap'; @@ -20,7 +20,7 @@ describe('/api/users', () => { beforeAll(async () => { settings = await prepareServer({ migrate: true }); - bruce = await runSeeder(CreateBruce); + bruce = await runSeed(CreateBruce); fakeAuthenticationForUser(bruce, true); });