summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2018-08-25 12:25:21 +0200
committerAlexander Harkness <me@bearbin.net>2018-08-25 12:25:21 +0200
commit907c22aa1280897b4e99b2993899cbe4773f8f2e (patch)
treea89cde7628319e133ada4ab2445d7c1fc42450aa
parentFixes bed item 26 and 355 being spawned, only 355 spawns now (#4290) (diff)
downloadcuberite-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 '')
-rw-r--r--.circleci/config.yml41
-rw-r--r--circle.yml20
-rwxr-xr-xclang-tidy.sh3
3 files changed, 42 insertions, 22 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
diff --git a/circle.yml b/circle.yml
deleted file mode 100644
index 3a8cac12b..000000000
--- a/circle.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-# This is the YML file that governs the CI builds at CircleCI.com
-# The CI is used only for style-checking at this moment.
-
-
-dependencies:
- pre:
- - sudo apt-get update
- - sudo apt-get install lua5.1 cmake clang-3.9 clang-tidy-3.9
- - sudo ln -s /usr/bin/clang-tidy-3.9 /usr/bin/clang-tidy
- - sudo ln -s /usr/bin/clang-apply-replacements-3.9 /usr/bin/clang-apply-replacements
- - pip install PyYAML
-
-test:
- override:
- - cd src && find . -name \*.cpp -or -name \*.h > AllFiles.lst && lua CheckBasicStyle.lua
- - cd src/Bindings && lua CheckBindingsDependencies.lua
- - curl -o "$HOME/bin/run-clang-tidy.py" "https://raw.githubusercontent.com/llvm-mirror/clang-tools-extra/45fb9b20ed7da2f6b95d83e5ef45bb536f49d8ca/clang-tidy/tool/run-clang-tidy.py"
- - chmod +x "$HOME/bin/run-clang-tidy.py"
- - git submodule update --init
- - ./clang-tidy.sh
diff --git a/clang-tidy.sh b/clang-tidy.sh
index 34cfb26e7..62fe6fc38 100755
--- a/clang-tidy.sh
+++ b/clang-tidy.sh
@@ -4,8 +4,7 @@ set -e
FIXES_FILE="tidy-fixes.yaml"
REGEX="/cuberite/src/\.?[^\.]"
-# TODO: Add -quiet when Circle CI is updated to 2.0 with a newer version of Ubuntu
-ARGS="-header-filter $REGEX -export-fixes $FIXES_FILE "$@" $REGEX"
+ARGS="-header-filter $REGEX -quiet -export-fixes $FIXES_FILE "$@" $REGEX"
mkdir -p tidy-build
cd tidy-build