From 0a2f57d265f51d9ae0f2eb211efc91a14a3e42e9 Mon Sep 17 00:00:00 2001 From: Derek Stavis Date: Sun, 24 Jan 2016 17:51:24 -0200 Subject: [PATCH] Remove themes doc travis test --- .travis.yml | 1 - tests/test-generate-themes-doc.fish | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100755 tests/test-generate-themes-doc.fish diff --git a/.travis.yml b/.travis.yml index d4fb7b1..407f435 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,6 @@ script: - tests/run.fish - pushd pkg/fish-spec; fish -c 'fish-spec'; popd - pushd pkg/omf; fish -c 'fish-spec'; popd - - tests/test-generate-themes-doc.fish after_failure: - pwd diff --git a/tests/test-generate-themes-doc.fish b/tests/test-generate-themes-doc.fish deleted file mode 100755 index c6447e8..0000000 --- a/tests/test-generate-themes-doc.fish +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env fish - -function __test_themes_doc - set -l project_dir (status -f|xargs dirname|xargs dirname) - set -l theme_output (mktemp /tmp/fish.test.Themes.XXXXX.md) - set -l theme_doc $project_dir/docs/Themes.md - - fish $project_dir/tools/generate-themes-doc.fish $theme_output - - if cmp -s $theme_doc $theme_output - echo "OK: $theme_doc is up-to-date" - exit 0 - else - diff $theme_doc $theme_output - echo "WARN: $theme_doc is not up-to-date" - exit 1 - end -end - -set -l compare_url "https://api.github.com/repos/$TRAVIS_REPO_SLUG/compare/$TRAVIS_COMMIT_RANGE" -echo "Detecting changes: $compare_url ..." -if curl -s $compare_url | grep -E '"filename": ?"db/themes' - echo "Changes to themes found. Verifying Themes.doc ..." - __test_themes_doc -else - echo "OK: No changes to themes found." - exit 0 -end