summaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: 11be687a411b3475c7e8a1affb4fe9a5566f963e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: 2
jobs:
  checkout_cuberite:
    working_directory: ~/cuberite
    docker: &cube_docker
    - image: cuberite/docker-build-image:circle-ci
    steps:
    - checkout
    - run: git submodule update --init
    - persist_to_workspace:
        root: ~/
        paths:
        - cuberite

  check_basic_style:
    working_directory: ~/cuberite/src
    docker: *cube_docker
    steps:
    - attach_workspace: { at: ~/ }
    - run: find . -name \*.cpp -or -name \*.h > AllFiles.lst
    - run: lua CheckBasicStyle.lua
    - run: cd Bindings && lua CheckBindingsDependencies.lua

  clang-tidy:
    working_directory: ~/cuberite
    docker: *cube_docker
    steps:
    - attach_workspace: { at: ~/ }
    - run: ./clang-tidy.sh -j 2

workflows:
  version: 2
  checks:
    jobs:
    - checkout_cuberite
    - check_basic_style:
        requires:
        - checkout_cuberite
    - clang-tidy:
        requires:
        - checkout_cuberite