-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (27 loc) · 749 Bytes
/
.travis.yml
File metadata and controls
35 lines (27 loc) · 749 Bytes
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
35
language: node_js
services:
- redis-server
- postgresql
node_js:
- 11
env:
- REACT_APP_API_URL=http://localhost:8000 POSTGRES_HOST=postgres://postgres:postgres@localhost:5432/postgres GOOGLE_CLIENT_ID=CLIENT_ID GOOGLE_CLIENT_SECRET=CLIENT_SECRET REDIS_URL=redis://localhost:6379 API_URL=http://localhost:8000 ENABLE_DATABASE_SSL=0
addons:
postgresql: "9.5"
apt:
packages:
- libgconf-2-4
cache:
npm: true
directories:
- ~/.cache
before_script:
- psql -c "ALTER USER postgres PASSWORD 'postgres';"
install:
- npm install
- cd frontend && npm install && npm run build && cd ../
- npm run setup && npm start &
script:
- sleep 10 && npm run load-fixtures
- cd frontend && npm test && cd ../
- npm test