-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
32 lines (31 loc) · 1.08 KB
/
.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
matrix:
include:
- language: python
python:
- "3.9"
- "3.8"
cache: pip
services:
- postgresql
env:
- GRAPHERY_NORMAL_LOG_PATH=graphery_normal.log GRAPHERY_EXECUTION_LOG_PATH=graphery_execution.log GRAPHERY_API_LOG_PATH=graphery_api.log PIPENV_IGNORE_VIRTUALENVS=1
install:
- sudo pip install pipenv
before_script:
- psql -c 'create database graphery;' -U postgres
- psql -c "create user graphery with encrypted password 'graphery';" -U postgres
- psql -c 'ALTER USER graphery WITH SUPERUSER;' -U postgres
- psql -c 'grant all privileges on database graphery to graphery;' -U postgres
script:
- cd backend && sudo pipenv install -d && sudo pipenv sync && sudo pipenv graph
- cd ./bundle && sudo pipenv run pytest -vv -ra -s
- cd ../server && sudo pipenv run pytest -vv -ra -s
- language: node_js
node_js: 12
cache: npm
install:
- cd graphery
- npm install -g yarn
- yarn install
script:
- yarn run build