more travis testing
This commit is contained in:
parent
8c78bec921
commit
09e3f69736
38
.travis.yml
38
.travis.yml
|
@ -1,22 +1,46 @@
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
jobs:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- language: node_js
|
- language: node_js
|
||||||
node_js:
|
node_js: "11"
|
||||||
- "11"
|
before_script:
|
||||||
- "12"
|
- mkdir meshcentral && cd meshcentral
|
||||||
|
script:
|
||||||
|
- npm install meshcentral
|
||||||
|
|
||||||
|
- language: node_js
|
||||||
|
node_js: "12"
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir meshcentral && cd meshcentral
|
- mkdir meshcentral && cd meshcentral
|
||||||
script:
|
script:
|
||||||
- npm install meshcentral
|
- npm install meshcentral
|
||||||
|
|
||||||
- language: python
|
- language: python
|
||||||
|
python: "3.7"
|
||||||
|
services:
|
||||||
|
- postgresql
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- 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
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- cd api/tacticalrmm
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install --upgrade pip
|
||||||
|
- pip install -r requirements-test.txt
|
||||||
|
|
||||||
|
script:
|
||||||
|
- python manage.py test -v 2
|
||||||
|
|
||||||
|
- language: python
|
||||||
|
python: "3.8"
|
||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
python:
|
|
||||||
- "3.7"
|
|
||||||
- "3.8"
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- psql -c 'CREATE DATABASE travisci;' -U postgres
|
- psql -c 'CREATE DATABASE travisci;' -U postgres
|
||||||
|
|
Loading…
Reference in New Issue