Skip to content

Commit

Permalink
Remove Travis CI dependency (kubernetes#13598)
Browse files Browse the repository at this point in the history
* Remove Travis CI dependency

* Make scripts runnable via chmod

* Remove .travis.yml reference in test examples script
  • Loading branch information
lucperkins authored and nowjean committed May 22, 2019
1 parent c0416b1 commit bfe33b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

13 changes: 5 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ functions-build:
check-headers-file:
scripts/check-headers-file.sh

production-build: check-hugo-versions build check-headers-file ## Build the production site and ensure that noindex headers aren't added
production-build: test-examples check-hugo-versions build check-headers-file ## Build the production site and ensure that noindex headers aren't added

non-production-build: check-hugo-versions ## Build the non-production site, which adds noindex headers to prevent indexing
non-production-build: test-examples check-hugo-versions ## Build the non-production site, which adds noindex headers to prevent indexing
hugo --enableGitInfo

sass-build:
Expand All @@ -47,12 +47,9 @@ docker-build:
docker-serve:
$(DOCKER_RUN) -p 1313:1313 $(DOCKER_IMAGE) hugo server --buildFuture --bind 0.0.0.0

# This command is used only by Travis CI; do not run this locally
travis-hugo-build:
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-64bit.tar.gz | tar -xz
mkdir -p ${TRAVIS_HOME}/bin
mv hugo ${TRAVIS_HOME}/bin
export PATH=${TRAVIS_HOME}/bin:$PATH
test-examples:
scripts/test_examples.sh install
scripts/test_examples.sh run

check-hugo-versions:
scripts/hugo-version-check.sh $(HUGO_VERSION)
4 changes: 0 additions & 4 deletions scripts/test_examples.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ for f in $FILES; do
TEST_EXAMPLES=Yes
break
fi
if [[ $f =~ ".travis.yml" ]]; then
TEST_EXAMPLES=Yes
break
fi
done

function install() {
Expand Down

0 comments on commit bfe33b2

Please sign in to comment.