testing node in travis #2

This commit is contained in:
wh1te909 2019-12-16 01:24:07 +00:00
parent e4a1465707
commit 8c78bec921
1 changed files with 19 additions and 21 deletions

View File

@ -1,12 +1,4 @@
dist: xenial dist: xenial
language: python
python:
- "3.7"
- "3.8"
services:
- postgresql
jobs: jobs:
include: include:
@ -19,19 +11,25 @@ jobs:
script: script:
- npm install meshcentral - npm install meshcentral
before_script: - language: python
- psql -c 'CREATE DATABASE travisci;' -U postgres services:
- psql -c "CREATE USER travisci WITH PASSWORD 'travisSuperSekret6645';" -U postgres - postgresql
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE travisci TO travisci;' -U postgres python:
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres - "3.7"
- "3.8"
before_install: before_script:
- cd api/tacticalrmm - psql -c 'CREATE DATABASE travisci;' -U postgres
- psql -c "CREATE USER travisci WITH PASSWORD 'travisSuperSekret6645';" -U postgres
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE travisci TO travisci;' -U postgres
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres
install: before_install:
- pip install --upgrade pip - cd api/tacticalrmm
- pip install -r requirements-test.txt
script: install:
- python manage.py migrate - pip install --upgrade pip
- python manage.py test -v 2 - pip install -r requirements-test.txt
script:
- python manage.py test -v 2