tacticalrmm/.travis.yml

39 lines
983 B
YAML
Raw Normal View History

2020-09-25 02:49:52 +00:00
dist: focal
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
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
- redis
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:
2020-09-25 02:49:52 +00:00
- pip install --no-cache-dir --upgrade pip
- pip install --no-cache-dir setuptools==49.6.0 wheel==0.35.1
2020-09-26 23:13:10 +00:00
- pip install --no-cache-dir -r requirements.txt -r requirements-test.txt
2019-12-16 01:24:07 +00:00
script:
2020-09-26 23:13:10 +00:00
- coverage run manage.py test -v 2
after_success:
- coveralls