Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,4 +12,6 @@ build_script:
- npm start build

test_script:
- npm test
- npm start test
- npm start test.integration
- npm start test.e2e
4 changes: 2 additions & 2 deletions test/e2e/api/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -20,7 +20,7 @@ describe('/api/users', () => {

beforeAll(async () => {
settings = await prepareServer({ migrate: true });
bruce = await runSeeder<User>(CreateBruce);
bruce = await runSeed<User>(CreateBruce);
fakeAuthenticationForUser(bruce, true);
});

Expand Down