From 7748bb159a0ad634ec8e889ab9b4207aac14cb25 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 20 Dec 2019 16:15:52 +0100 Subject: [PATCH] Check coding style --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index c707c47..f8c318a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,14 @@ test-extensions-job-template: &test-extensions-job-template jobs: include: + - stage: Pre-test checks + name: Check coding style + if: type = pull_request + language: go + go: '1.13' + before_script: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt + script: shfmt -d -s -ln posix -i 0 -ci -kp install-php-extensions scripts/common scripts/travisci-test-extensions scripts/travisci-update-readme scripts/update-readme + - <<: *test-extensions-job-template name: Test extensions on Alpine 3.7 env: DOCKER_DISTRO=alpine3.7