Build PR branches only once (for origin branches) and skip docs changes

This commit is contained in:
Joe Rickerby
2020-04-07 11:49:10 +01:00
parent ea6ada0728
commit 97628673d2
3 changed files with 18 additions and 1 deletions
+6 -1
View File
@@ -1,6 +1,11 @@
name: Test name: Test
on: [push, pull_request] on:
push:
- master
pull_request:
paths-ignore:
- 'docs/**'
jobs: jobs:
test: test:
+4
View File
@@ -1,5 +1,9 @@
language: minimal language: minimal
branches:
only:
- master
jobs: jobs:
include: include:
- name: Linux | x86_64 + i686 | Python 3.5 - name: Linux | x86_64 + i686 | Python 3.5
+8
View File
@@ -19,3 +19,11 @@ install: python -m pip install -r requirements-dev.txt
# the '-u' flag is required so the output is in the correct order. # the '-u' flag is required so the output is in the correct order.
# See https://github.com/joerick/cibuildwheel/pull/24 for more info. # See https://github.com/joerick/cibuildwheel/pull/24 for more info.
test_script: python -u ./bin/run_tests.py test_script: python -u ./bin/run_tests.py
branches:
only:
- master
skip_commits:
files:
- docs/*