-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (34 loc) · 944 Bytes
/
.travis.yml
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
31
32
33
34
language: node_js
node_js:
- "stable"
services:
- postgresql
cache:
directories:
- app/node_modules
- server/node_modules
- node_modules
before_script:
- psql -c 'create database barkingo;' -U postgres
- psql -c 'CREATE TABLE users (id character varying(150) PRIMARY KEY, name character varying(150) NOT NULL, email character varying(150) NOT NULL UNIQUE, password character varying(150), googletoken character varying(200), facebooktoken character varying(200));' -U postgres
- cd server
- touch creds.json
- echo '{"db":{"user":"postgres","host":"localhost","database":"barkingo","password":"","port":5432},"secret":"superimportantaixonses"}' >> creds.json
- cat creds.json
- cd ..
- cd app
- npm i
- cd ..
- cd server
- npm i
- cd ..
- npm i -g create-react-app
script:
- npm test
deploy:
provider: pages
skip_cleanup: true
github_token: $github_token
local_dir: build
on:
branch: dev