From 5d7d0dfd48bf9790a8c65b48eac695cc03778364 Mon Sep 17 00:00:00 2001 From: Tomasz Pajor Date: Sat, 19 Jan 2019 10:43:32 +0100 Subject: [PATCH] bump ruby versions and add coditsu v2 --- .coditsu.yml | 3 +++ .gitignore | 3 ++- .travis.yml | 50 +++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 .coditsu.yml diff --git a/.coditsu.yml b/.coditsu.yml new file mode 100644 index 0000000..2083595 --- /dev/null +++ b/.coditsu.yml @@ -0,0 +1,3 @@ +api_key: <%= ENV['CODITSU_API_KEY'] %> +api_secret: <%= ENV['CODITSU_API_SECRET'] %> +repository_id: <%= ENV['CODITSU_REPOSITORY_ID'] %> diff --git a/.gitignore b/.gitignore index b6a0a6d..b2c8338 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,5 @@ .rvmrc # Example files -/example/.bundle \ No newline at end of file +/example/.bundle +vendor diff --git a/.travis.yml b/.travis.yml index da6ae41..2725c80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,44 @@ +services: + - docker + dist: trusty sudo: false -language: ruby cache: bundler -rvm: - - 2.3.7 - - 2.4.4 - - 2.5.1 - - ruby-head - -before_install: - - gem install bundler + +git: + depth: false + +test: &test + stage: test + language: ruby + before_install: + - gem install bundler + - gem update --system + +jobs: + include: + - <<: *test + rvm: 2.6.0 + - <<: *test + rvm: 2.5.3 + - <<: *test + rvm: 2.4.5 + - <<: *test + rvm: 2.3.8 + + - stage: coditsu + language: script + before_script: + - docker create -v /sources --name sources alpine:3.4 /bin/true + - docker cp ./ sources:/sources + script: > + docker run + -e CODITSU_API_KEY + -e CODITSU_API_SECRET + -e CODITSU_REPOSITORY_ID + --volumes-from sources + coditsu/build-runner:latest + +stages: + - coditsu + - test