From 45f35290dae282610ea6aa5012b31861c792a03e Mon Sep 17 00:00:00 2001 From: Rob Cole Date: Mon, 3 Jan 2022 09:21:01 -0800 Subject: [PATCH] Remove references to Travis CI (#722) Travis CI removed support for Crystal images and is no longer part of shards init, and can be safely removed from the generators. --- spec/integration/init_web_spec.cr | 1 - src/generators/web.cr | 5 ----- src/web_app_skeleton/.travis.yml.ecr | 28 ---------------------------- 3 files changed, 34 deletions(-) delete mode 100644 src/web_app_skeleton/.travis.yml.ecr diff --git a/spec/integration/init_web_spec.cr b/spec/integration/init_web_spec.cr index da4aab9a..8c6e4dca 100644 --- a/spec/integration/init_web_spec.cr +++ b/spec/integration/init_web_spec.cr @@ -17,7 +17,6 @@ describe "Initializing a new web project" do File.delete("test-project/.env") compile_and_run_specs_on_test_project File.read("test-project/Procfile").should contain "test_project" - File.read("test-project/.travis.yml").should contain "postgresql" File.read(".github/workflows/ci.yml").should contain "postgres" File.read("test-project/public/mix-manifest.json").should contain "images/cat.gif" File.exists?("test-project/public/favicon.ico").should eq true diff --git a/src/generators/web.cr b/src/generators/web.cr index cf39250e..5c1b0c08 100644 --- a/src/generators/web.cr +++ b/src/generators/web.cr @@ -32,7 +32,6 @@ class LuckyCli::Generators::Web ensure_directory_does_not_exist generate_default_crystal_project add_deps_to_shard_file - remove_generated_travis_file remove_generated_src_files remove_generated_spec_files remove_default_readme @@ -109,10 +108,6 @@ class LuckyCli::Generators::Web remove_default_generated_if_exists("src") end - private def remove_generated_travis_file - remove_default_generated_if_exists(".travis.yml") - end - private def remove_generated_spec_files remove_default_generated_if_exists("spec") end diff --git a/src/web_app_skeleton/.travis.yml.ecr b/src/web_app_skeleton/.travis.yml.ecr deleted file mode 100644 index dba3655b..00000000 --- a/src/web_app_skeleton/.travis.yml.ecr +++ /dev/null @@ -1,28 +0,0 @@ -language: crystal -<%- if browser? -%> -addons: - chrome: stable -<%- end -%> -services: - - postgresql -<%- if browser? -%> -before_install: - # Setup chromedriver for LuckyFlow - - sudo apt-get install chromium-chromedriver - - # Setup assets - - yarn install - - yarn prod -<%- end -%> -script: - - crystal spec - # Uncomment the next line if you'd like Travis to check code formatting - # - crystal tool format spec src --check -cache: -<%- if browser? -%> - yarn: true -<%- end -%> - directories: - - bin/lucky - - lib - - .shards