Skip to content

Commit

Permalink
rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed Sep 19, 2020
1 parent 7be1e0d commit dc53954
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@ os:
- linux
dist: bionic
language: python
python:
- 3.6
- 3.7
- 3.8

# build for all pushes, as well as PRs coming from forks
# this ensures that the pipeline is triggered for internal pushes,
# PRs from forks and pushes to existing PRs from forks
if: (type == push) OR (type == pull_request AND fork == true)

script:
- flake8
- coverage run --source trs_filer -m pytest
- coveralls

stages:
- name: test
- name: publish
# for security reasons, builds from forks won't be published until merged;
# also, environment variables defined in repository settings are not
Expand All @@ -26,6 +19,27 @@ stages:

jobs:
include:
- stage: test
name: Run linting and unit tests on Python 3.6
python: 3.6
script:
- flake8
- coverage run --source trs_filer -m pytest
- coveralls
- stage: test
name: Run linting and unit tests on Python 3.7
python: 3.7
script:
- flake8
- coverage run --source trs_filer -m pytest
- coveralls
- stage: test
name: Run linting and unit tests on Python 3.8
python: 3.8
script:
- flake8
- coverage run --source trs_filer -m pytest
- coveralls
- stage: publish
name: Build and publish
python: 3.8
Expand Down

0 comments on commit dc53954

Please sign in to comment.