testing node in travis #2
This commit is contained in:
parent
e4a1465707
commit
8c78bec921
24
.travis.yml
24
.travis.yml
|
@ -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
|
||||||
|
services:
|
||||||
|
- postgresql
|
||||||
|
python:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
|
||||||
|
before_script:
|
||||||
- psql -c 'CREATE DATABASE travisci;' -U postgres
|
- psql -c 'CREATE DATABASE travisci;' -U postgres
|
||||||
- psql -c "CREATE USER travisci WITH PASSWORD 'travisSuperSekret6645';" -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 'GRANT ALL PRIVILEGES ON DATABASE travisci TO travisci;' -U postgres
|
||||||
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres
|
- psql -c 'ALTER USER travisci CREATEDB;' -U postgres
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- cd api/tacticalrmm
|
- cd api/tacticalrmm
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install -r requirements-test.txt
|
- pip install -r requirements-test.txt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- python manage.py migrate
|
|
||||||
- python manage.py test -v 2
|
- python manage.py test -v 2
|
||||||
|
|
Loading…
Reference in New Issue