Skip to content

Commit 864d6e3

Browse files
author
Gery Hirschfeld
authored
Merge pull request #75 from w3tecch/feature/seed-ci
Feature/seed ci
2 parents 15c0fee + bb27906 commit 864d6e3

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
language: node_js
22
node_js:
3-
- "8.2.1"
3+
- "8.9.4"
44
install:
55
- yarn install
6-
scripts:
7-
- npm test
6+
env:
7+
- DB_TYPE="sqlite" DB_DATABASE="./mydb.sql" DB_LOGGING=false
8+
script:
9+
- npm start test
10+
- npm start test.integration
11+
- npm start test.e2e
812
- npm start build
913
notifications:
1014
email: false

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
environment:
22
nodejs_version: "8"
3+
DB_TYPE: "sqlite"
4+
DB_DATABASE: "./mydb.sql"
5+
DB_LOGGING: false
36

47
install:
58
- ps: Install-Product node $env:nodejs_version
@@ -9,4 +12,6 @@ build_script:
912
- npm start build
1013

1114
test_script:
12-
- npm test
15+
- npm start test
16+
- npm start test.integration
17+
- npm start test.e2e

test/e2e/api/users.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as request from 'supertest';
33

44
import { User } from '../../../src/api/models/User';
55
import { CreateBruce } from '../../../src/database/seeds/CreateBruce';
6-
import { runSeeder } from '../../../src/lib/seed';
6+
import { runSeed } from '../../../src/lib/seed';
77
import { closeDatabase } from '../../utils/database';
88
import { fakeAuthenticationForUser } from '../utils/auth';
99
import { BootstrapSettings } from '../utils/bootstrap';
@@ -20,7 +20,7 @@ describe('/api/users', () => {
2020

2121
beforeAll(async () => {
2222
settings = await prepareServer({ migrate: true });
23-
bruce = await runSeeder<User>(CreateBruce);
23+
bruce = await runSeed<User>(CreateBruce);
2424
fakeAuthenticationForUser(bruce, true);
2525
});
2626

0 commit comments

Comments
 (0)