From f8fb73fb149a6118e79efa723db9bf5f4865a3cc Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:03:40 +0000 Subject: [PATCH 1/6] Use a prebuilt ruby https://docs.travis-ci.com/user/reference/bionic/ Pre-installed Rubies: 2.3.8, 2.4.5, 2.5.3 and 2.6.3. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 304c64c..028d624 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: ruby -dist: xenial +dist: bionic services: - xvfb rvm: - - 2.6.4 + - 2.6.3 env: - RAILS_VERSION=6.0.0 From 8d04646341f7c457e5d95ca741b3fcdf0faf4e48 Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:09:21 +0000 Subject: [PATCH 2/6] Cache the correct directory --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 028d624..b4d1d20 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ addons: cache: directories: - - /home/travis/.rvm/gems/ruby-2.6.4 + - /home/travis/.rvm/gems/ruby-2.6.3 install: ./ci/build.sh From 8d8fc11e55f93d61926db89fa72a2a012a232114 Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:35:51 +0000 Subject: [PATCH 3/6] correct ruby-version for travis --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 2714f53..ec1cf33 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.6.4 +2.6.3 From c108a8367cd856442886451b53e81a70e7b933cc Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:48:29 +0000 Subject: [PATCH 4/6] try conditional stages --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b4d1d20..324213b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,7 @@ addons: - libqtwebkit-dev - libqtwebkit4 -cache: - directories: - - /home/travis/.rvm/gems/ruby-2.6.3 +cache: bundler install: ./ci/build.sh @@ -29,6 +27,7 @@ jobs: include: - stage: publish components script: 'cd rswag-api' + if: tags = true deploy: gemspec: rswag-api.gemspec provider: rubygems @@ -39,6 +38,7 @@ jobs: - stage: publish components script: 'cd rswag-specs' + if: tags = true deploy: gemspec: rswag-specs.gemspec provider: rubygems @@ -49,6 +49,7 @@ jobs: - stage: publish components script: 'cd rswag-ui' + if: tags = true deploy: gemspec: rswag-ui.gemspec provider: rubygems @@ -60,6 +61,7 @@ jobs: - stage: publish rswag script: 'cd rswag' + if: tags = true deploy: gemspec: rswag.gemspec provider: rubygems From dad99930aa66a28728c3646ad099bbf04def3bff Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:56:08 +0000 Subject: [PATCH 5/6] trigger build --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbf46e8..7813841 100644 --- a/README.md +++ b/README.md @@ -522,7 +522,7 @@ end The swagger-ui provides several options for customizing it's behavior, all of which are documented here https://github.com/swagger-api/swagger-ui/tree/2.x#swaggerui. If you need to tweak these or customize the overall look and feel of your swagger-ui, then you'll need to provide your own version of index.html. You can do this with the following generator. ```ruby -rails g rswag:ui:custom +rails generate rswag:ui:custom ``` From 3dc0909a6a68ad090974b72564e06616d805a4c8 Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sat, 2 Nov 2019 15:59:48 +0000 Subject: [PATCH 6/6] Use specific directory. We dont bundle to vendor/bundle --- .travis.yml | 4 +++- README.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 324213b..d8599d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,9 @@ addons: - libqtwebkit-dev - libqtwebkit4 -cache: bundler +cache: + directories: + - /home/travis/.rvm/gems/ruby-2.6.3 install: ./ci/build.sh diff --git a/README.md b/README.md index 7813841..bbf46e8 100644 --- a/README.md +++ b/README.md @@ -522,7 +522,7 @@ end The swagger-ui provides several options for customizing it's behavior, all of which are documented here https://github.com/swagger-api/swagger-ui/tree/2.x#swaggerui. If you need to tweak these or customize the overall look and feel of your swagger-ui, then you'll need to provide your own version of index.html. You can do this with the following generator. ```ruby -rails generate rswag:ui:custom +rails g rswag:ui:custom ```