diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f3e55df54dd162368189e4c18475f1d2f18a95b..067144761df18780269fb04c690be592a3092aa7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,20 @@ stages: + - lint - build - test +pattern: + stage: lint + tags: + - regular + - debian + script: + - shopt -s extglob + - apt-get update && apt-get install -y git python + - git clone https://github.com/google/styleguide + - cd styleguide/cpplint + - ./cpplint.py --filter=-whitespace/blank_line,-build/include_what_you_use ../../src/!(jsoncpp).cpp ../../src/linux/*.cpp ../../src/windows/*.cpp + compile: stage: build artifacts: @@ -13,7 +26,7 @@ compile: - debian script: - echo "Estágio 'build'" - - apt-get update && apt-get install -y build-essential cmake git + - apt-get update && apt-get install -y build-essential cmake git - git submodule init - git submodule update --init --recursive - mkdir build