forked from Kong/docs.konghq.com
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(check links) check for broken links (Kong#1342)
* chore(ci) setup a link-checker to run via travis-ci * fix(ci) debug why this doesn't work on travis-ci * fix(ci) adjust travis-ci permissions * chore(ci) travis-c permissions * chore(dependency) add the broken link checker dependency * merge master * add broken link checker * Add check-link test to README * remove docker-test * Delete .env * update travis.yml * update travis.yml * remove check-link command
- Loading branch information
1 parent
91dbbe2
commit 87b688a
Showing
8 changed files
with
948 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
language: node_js | ||
node_js: | ||
- "8" | ||
|
||
dist: xenial | ||
sudo: false | ||
|
||
language: generic | ||
notifications: | ||
email: false | ||
|
||
cache: | ||
bundler: true | ||
yarn: true | ||
|
||
before_install: | ||
- rvm install 2.3.3 | ||
- npm install -g yarn | ||
env: | ||
- NODE_OPTIONS=--max_old_space_size=8192 | ||
install: | ||
- bundle install | ||
- yarn | ||
before_script: | ||
- npm test | ||
script: | ||
- gulp build | ||
- docker-compose build | ||
- touch Gemfile.lock | ||
- mkdir node_modules | ||
- chmod -R 777 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
# This should mirror the jekyll version in the Gemfile | ||
FROM jekyll/jekyll:3.8.6 | ||
|
||
WORKDIR /srv/jekyll | ||
|
||
RUN apk add --update autoconf automake file build-base nasm musl libpng-dev zlib-dev | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN npm install -g yarn && npm install -g gulp | ||
WORKDIR /srv/jekyll | ||
COPY Makefile /srv/jekyll | ||
RUN make install-prerequisites | ||
|
||
RUN chmod -R 777 /usr/lib/node_modules \ | ||
&& chmod 777 /entrypoint.sh \ | ||
&& usermod -a -G root jekyll | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
EXPOSE 3000 3001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
install-prerequisites: | ||
npm install -g yarn | ||
npm install -g gulp | ||
|
||
install: | ||
npm install | ||
bundle install | ||
yarn --ignore-engines | ||
yarn upgrade | ||
|
||
run: install | ||
gulp | ||
|
||
develop: | ||
docker-compose up --build | ||
docker-compose up | ||
|
||
test: install | ||
npm test | ||
|
||
docker-test: | ||
COMMAND="make test" docker-compose up | ||
|
||
check-links: | ||
docker-compose up -d | ||
while [ `curl -s -o /dev/null -w ''%{http_code}'' localhost:3000` != 200 ]; do echo "waiting"; docker-compose logs --tail=2 jekyll; sleep 20; done | ||
docker-compose exec jekyll yarn blc http://localhost:3000 -efr --exclude careers --exclude hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/bin/bash | ||
|
||
npm install -g yarn | ||
npm install -g gulp | ||
bundle install | ||
yarn --ignore-engines | ||
gulp clean | ||
|
Oops, something went wrong.