From 8c78bec92144431c82b99954fe6c03693940634d Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 16 Dec 2019 01:24:07 +0000 Subject: [PATCH] testing node in travis #2 --- .travis.yml | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d27dc0e..cab8290f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,4 @@ dist: xenial -language: python - -python: - - "3.7" - - "3.8" - -services: - - postgresql jobs: include: @@ -19,19 +11,25 @@ jobs: script: - npm install meshcentral -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 + - language: python + services: + - postgresql + python: + - "3.7" + - "3.8" -before_install: - - cd api/tacticalrmm + 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 -install: - - pip install --upgrade pip - - pip install -r requirements-test.txt + before_install: + - cd api/tacticalrmm -script: - - python manage.py migrate - - python manage.py test -v 2 + install: + - pip install --upgrade pip + - pip install -r requirements-test.txt + + script: + - python manage.py test -v 2