-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (35 loc) · 958 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
35
36
matrix:
include:
- language: python
sudo: required
services:
- postgresql
addons:
postgresql: "11.2"
env:
global:
- DB_HOST=localhost
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql restart 11
- cd backend
install:
- pip3 install -r requirements.txt
before_script:
- psql -c 'create user codeemploy SUPERUSER LOGIN CREATEDB' -U postgres
- psql -c 'create database codeemploy' -U postgres
script:
- python3 manage.py test
- language: node_js
node_js:
- 9
before_install:
- cd frontend
cache:
directories:
- node_modules
script:
- npm run test:ci