diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-08-25 12:25:21 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-08-25 12:25:21 +0200 |
commit | 907c22aa1280897b4e99b2993899cbe4773f8f2e (patch) | |
tree | a89cde7628319e133ada4ab2445d7c1fc42450aa /.circleci/config.yml | |
parent | Fixes bed item 26 and 355 being spawned, only 355 spawns now (#4290) (diff) | |
download | cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar.gz cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar.bz2 cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar.lz cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar.xz cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.tar.zst cuberite-907c22aa1280897b4e99b2993899cbe4773f8f2e.zip |
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..d563a70db --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,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 + - save_cache: + key: "cuberite-{{ .Environment.CIRCLE_SHA1 }}" + paths: + - ~/cuberite + + check_basic_style: + working_directory: ~/cuberite/src + docker: *cube_docker + steps: + - restore_cache: { keys: [ "cuberite-{{ .Environment.CIRCLE_SHA1 }}" ] } + - 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: + - restore_cache: { keys: [ "cuberite-{{ .Environment.CIRCLE_SHA1 }}" ] } + - run: ./clang-tidy.sh -j 2 + +workflows: + version: 2 + checks: + jobs: + - checkout_cuberite + - check_basic_style: + requires: + - checkout_cuberite + - clang-tidy: + requires: + - checkout_cuberite |