From 8011a0f5f1a46be05095472cdccc30abb6bb8f01 Mon Sep 17 00:00:00 2001 From: eramirez01 Date: Sun, 26 Aug 2018 13:29:22 -0700 Subject: [PATCH 1/2] circle danger test --- .circleci/config.yml | 42 +++++++++++++++++++++++++++++ Dangerfile | 13 +++++++++ Gemfile | 7 +++++ Gemfile.lock | 63 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 Dangerfile create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e3b4bdc --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +# Java Gradle CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + JVM_OPTS: -Xmx3200m + TERM: dumb + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "build.gradle" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: gradle dependencies + + - save_cache: + paths: + - ~/.gradle + key: v1-dependencies-{{ checksum "build.gradle" }} + + # run tests! + - run: gradle test \ No newline at end of file diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 0000000..d052979 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,13 @@ +# Sometimes it's a README fix, or something like that - which isn't relevant for +# including in a project's CHANGELOG for example +declared_trivial = github.pr_title.include? "#trivial" + +# Make it more obvious that a PR is a work in progress and shouldn't be merged yet +warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]" + +# Warn when there is a big PR +warn("Big PR") if git.lines_of_code > 500 + +# Don't let testing shortcuts get into master by accident +fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1 +fail("fit left in tests") if `grep -r fit specs/ `.length > 1 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..5ca016c --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +# frozen_string_literal: true +source "https://rubygems.org" + +# gem "rails" + +gem 'danger' +gem 'danger-gitlab' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f1257e8 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,63 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + claide (1.0.2) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) + colored2 (3.1.2) + cork (0.3.0) + colored2 (~> 3.1) + danger (5.6.4) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (~> 0.9) + faraday-http-cache (~> 1.0) + git (~> 1) + kramdown (~> 1.5) + no_proxy_fix + octokit (~> 4.7) + terminal-table (~> 1) + danger-gitlab (6.0.0) + danger (~> 5.0) + gitlab (~> 4.2, >= 4.2.0) + faraday (0.15.2) + multipart-post (>= 1.2, < 3) + faraday-http-cache (1.3.1) + faraday (~> 0.8) + git (1.5.0) + gitlab (4.5.0) + httparty (>= 0.14.0) + terminal-table (>= 1.5.1) + httparty (0.16.2) + multi_xml (>= 0.5.2) + kramdown (1.17.0) + multi_xml (0.6.0) + multipart-post (2.0.0) + nap (1.1.0) + no_proxy_fix (0.1.2) + octokit (4.10.0) + sawyer (~> 0.8.0, >= 0.5.3) + open4 (1.3.4) + public_suffix (3.0.3) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + unicode-display_width (1.4.0) + +PLATFORMS + ruby + +DEPENDENCIES + danger + danger-gitlab + +BUNDLED WITH + 1.14.6 From 51cd1e386c16c6d2f55eef96c7a54a96455ff1e9 Mon Sep 17 00:00:00 2001 From: eramirez01 Date: Sun, 26 Aug 2018 13:33:30 -0700 Subject: [PATCH 2/2] fixed --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e3b4bdc..ef57c62 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,14 +7,14 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/openjdk:8-jdk + - image: circleci/android:api-26-alpha # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ # - image: circleci/postgres:9.4 - working_directory: ~/repo + working_directory: ~/JoyStick environment: # Customize the JVM maximum heap limit