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:
committed by
Kubernetes Prow Robot
parent
335bf7027e
commit
8101de9f43
-22
@@ -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
|
|
||||||
@@ -24,9 +24,9 @@ functions-build:
|
|||||||
check-headers-file:
|
check-headers-file:
|
||||||
scripts/check-headers-file.sh
|
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
|
hugo --enableGitInfo
|
||||||
|
|
||||||
sass-build:
|
sass-build:
|
||||||
@@ -47,12 +47,9 @@ docker-build:
|
|||||||
docker-serve:
|
docker-serve:
|
||||||
$(DOCKER_RUN) -p 1313:1313 $(DOCKER_IMAGE) hugo server --buildFuture --bind 0.0.0.0
|
$(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
|
test-examples:
|
||||||
travis-hugo-build:
|
scripts/test_examples.sh install
|
||||||
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-64bit.tar.gz | tar -xz
|
scripts/test_examples.sh run
|
||||||
mkdir -p ${TRAVIS_HOME}/bin
|
|
||||||
mv hugo ${TRAVIS_HOME}/bin
|
|
||||||
export PATH=${TRAVIS_HOME}/bin:$PATH
|
|
||||||
|
|
||||||
check-hugo-versions:
|
check-hugo-versions:
|
||||||
scripts/hugo-version-check.sh $(HUGO_VERSION)
|
scripts/hugo-version-check.sh $(HUGO_VERSION)
|
||||||
|
|||||||
Regular → Executable
-4
@@ -13,10 +13,6 @@ for f in $FILES; do
|
|||||||
TEST_EXAMPLES=Yes
|
TEST_EXAMPLES=Yes
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [[ $f =~ ".travis.yml" ]]; then
|
|
||||||
TEST_EXAMPLES=Yes
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
function install() {
|
function install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user