tacticalrmm/.travis.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

2019-10-22 22:55:14 +00:00
dist: xenial
2019-10-22 22:22:36 +00:00
2019-12-16 01:37:54 +00:00
matrix:
2019-12-16 01:18:58 +00:00
include:
2019-12-16 01:45:36 +00:00
- language: node_js
node_js: "12"
before_install:
- cd web
install:
- npm install
script:
2020-05-08 05:37:45 +00:00
- npm run test:unit
2019-12-16 01:37:54 +00:00
- 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
2020-01-17 07:15:13 +00:00
- pip install -r requirements.txt -r requirements-test.txt
2019-12-16 01:37:54 +00:00
script:
- python manage.py test -v 2
2019-12-16 01:24:07 +00:00
- language: python
2019-12-16 01:37:54 +00:00
python: "3.8"
2019-12-16 01:24:07 +00:00
services:
- postgresql
2019-10-22 22:22:36 +00:00
2019-12-16 01:24:07 +00:00
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
2019-10-22 22:22:36 +00:00
2019-12-16 01:24:07 +00:00
before_install:
- cd api/tacticalrmm
2019-10-22 22:22:36 +00:00
2019-12-16 01:24:07 +00:00
install:
- pip install --upgrade pip
2020-01-17 07:15:13 +00:00
- pip install -r requirements.txt -r requirements-test.txt
2019-12-16 01:24:07 +00:00
script:
- python manage.py test -v 2