Skip to content

Commit

Permalink
Merge pull request #69 from maykinmedia/feature/set-up-travis
Browse files Browse the repository at this point in the history
Set up Travis
  • Loading branch information
annashamray committed Sep 22, 2020
2 parents 935b39f + 3adc3c8 commit 96e02a4
Show file tree
Hide file tree
Showing 5 changed files with 14,327 additions and 137 deletions.
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
dist: bionic

language: python

cache: pip

python: 3.8

services:
- postgresql

addons:
postgresql: "10"

env:
global:
- DJANGO_SETTINGS_MODULE=objects.conf.ci
- SECRET_KEY=dummy
- DB_PASSWORD=
- DB_USER=postgres

install:
- pip install -r requirements/ci.txt
- pip install codecov
- npm ci
- npm run build

jobs:
include:
# Run jobs in parallel in stage Tests
- stage: "Tests"
name: "Unit tests"
script:
- python src/manage.py collectstatic --noinput --link
- coverage run src/manage.py test src

- name: "Code imports"
before_install: skip
install:
- pip install isort
before_script: skip
script: isort . --check-only --diff

- name: "Code format"
before_install: skip
install:
- pip install black
before_script: skip
script: black --check src --diff

after_success:
- codecov

0 comments on commit 96e02a4

Please sign in to comment.