-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (21 loc) · 1.08 KB
/
.travis.yml
File metadata and controls
30 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo: false
language: node_js
node_js:
- 'stable'
services:
- postgresql
before_script:
- psql -c 'CREATE DATABASE igihe2;' -U postgres
- psql -c 'CREATE TABLE employees (uuid uuid primary key not null, name varchar(255) not null,email varchar(100) not null unique,status varchar(24) not null,nid varchar(255) not null unique,phone varchar(100) not null unique,position varchar(200) not null,birthday date not null,"createdAt" timestamp not null,"updatedAt" timestamp not null);' -U postgres
- psql -c "CREATE TABLE managers (uuid uuid primary key not null, name varchar(255) not null,email varchar(100) not null unique,password varchar(255) not null,confirmed bool default 'f',status varchar(24) not null,nid varchar(255) not null unique,phone varchar(100) not null unique,position varchar(200) not null,birthday date not null,"createdAt" timestamp not null,"updatedAt" timestamp not null);" -U postgres
env:
- DATABASE_URL: postgres://localhost:5432/igihe2
cache:
npm: false
notifications:
email: false
script:
- npm ci
- npm run coverage
after_success:
- npm run coveralls