Skip to content

Commit

Permalink
clang-format as separated job
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Sep 9, 2018
1 parent 09fa627 commit eb06cab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Expand Up @@ -9,15 +9,12 @@ env:
- ZBX_VERSION=3.0.19 ZBX_HEADERS_VERSION=3
#- ZBX_VERSION=2.2.19 ZBX_HEADERS_VERSION=2
before_install:
- chmod +x autogen.sh
- curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- ./autogen.sh
- ./configure --enable-zabbix-${ZBX_HEADERS_VERSION}
- ./format-clang.sh
- git diff --exit-code
- make && sudo make install
- pushd tests/docker && docker-compose up -d
- popd
Expand All @@ -29,3 +26,14 @@ script:
- python tests/test_modbus_64bit.py
- python tests/test_modbus_connection_string.py
- python tests/test_modbus_short_params.py

jobs:
include:
- stage: format
script:
- ./clang-format.sh
- git diff --exit-code

stages:
- format
- test
Empty file modified autogen.sh 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion clang-format.sh 100644 → 100755
@@ -1,2 +1,2 @@
#!/bin/bash
clang-format-6.0 -i --style=file src/*.c
clang-format -i --style=file src/*.c

0 comments on commit eb06cab

Please sign in to comment.