From 34a4e683d59e14c269b10eeb86ff0198f0c87ddb Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Fri, 17 Nov 2017 21:06:44 -0800 Subject: [PATCH] Setup the html check in circleci (#719) * Setup the html check in circleci as jenkins is broken I've setup the rake test in circle ci it's super fast thanks to caching the bundle install results --- .circleci/config.yml | 35 +++++++++++++++++++++++++++++++++++ Gemfile | 1 + Gemfile.lock | 2 ++ _config.yml | 1 + 4 files changed, 39 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..11205f791e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,35 @@ +# Ruby CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-ruby/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/ruby:2.4.1-node-browsers + + working_directory: ~/repo + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "Gemfile.lock" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: + name: install dependencies + command: | + bundle install --jobs=4 --retry=3 --path vendor/bundle + + - save_cache: + paths: + - ./vendor/bundle + key: v1-dependencies-{{ checksum "Gemfile.lock" }} + + # Run the test/html checker + - run: bundle exec rake test diff --git a/Gemfile b/Gemfile index bcea0e0eea..82417d96fe 100644 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,5 @@ gem "github-pages", group: :jekyll_plugins gem "jekyll-include-cache", "~> 0.1" gem "nokogiri", "= 1.7.2" gem "html-proofer" +gem "rake" diff --git a/Gemfile.lock b/Gemfile.lock index 68757c1f00..51a403f1d4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -201,6 +201,7 @@ GEM pathutil (0.16.0) forwardable-extended (~> 2.6) public_suffix (2.0.5) + rake (12.0.0) rb-fsevent (0.10.2) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) @@ -232,6 +233,7 @@ DEPENDENCIES html-proofer jekyll-include-cache (~> 0.1) nokogiri (= 1.7.2) + rake BUNDLED WITH 1.14.6 diff --git a/_config.yml b/_config.yml index 458c894bcd..a4fb0e6df1 100644 --- a/_config.yml +++ b/_config.yml @@ -60,6 +60,7 @@ exclude: - Jenkinsfile - repos/*.html - repos/*.md + - vendor/ repository: istio/istio.github.io