Remove Travis CI dependency (#13598)

* Remove Travis CI dependency

* Make scripts runnable via chmod

* Remove .travis.yml reference in test examples script
This commit is contained in:
Luc Perkins
2019-04-11 01:40:13 -07:00
committed by Kubernetes Prow Robot
parent 335bf7027e
commit 8101de9f43
3 changed files with 5 additions and 34 deletions
-22
View File
@@ -1,22 +0,0 @@
env:
global:
- KUBE_VERSION: 1.13
language: go
go:
- 1.11.5
jobs:
include:
- name: "Testing examples"
cache:
directories:
- $HOME/.cache/go-build
install:
- bash scripts/test_examples.sh install
script:
- bash scripts/test_examples.sh run
- name: "Hugo build"
install:
- make travis-hugo-build
script:
- hugo
+5 -8
View File
@@ -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:
@@ -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)
Regular → Executable
-4
View File
@@ -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() {