diff options
author | Eddie Webb <ollitech@gmail.com> | 2018-11-18 17:40:22 +0300 |
---|---|---|
committer | Eddie Webb <ollitech@gmail.com> | 2018-11-18 17:40:22 +0300 |
commit | 76c96bc8e973513ec5fac772bd4d419f0e2a7954 (patch) | |
tree | 1e2ad07a2b9bf7e6f44810d823e55a5a31a988fb | |
parent | c9325aa3dd394633fe5b2fb6598ef0f9f876405b (diff) |
adding CI pipeline for example site
-rw-r--r-- | .circleci/config.yml | 30 | ||||
-rw-r--r-- | exampleSite/config.toml | 4 |
2 files changed, 32 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c86a486 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2.1 + +workflows: + build-deploy: + jobs: + - test + +jobs: + test: + docker: + - image: felicianotech/docker-hugo:0.47.1 + steps: + - checkout + - run: + name: HUGO build for Test domain + command: | + hugo -v -s exampleSite --destination /tmp/public -b http://localhost + ls /tmp/public + if [ ! -f /tmp/public/index.html ];then + echo "index.html not created, failing" + exit 1 + fi + - run: + name: Simple content check + command: | + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://${TESTHOST}/index.html` + if [ "$HTTPCODE" -ne 200 ];then + echo "index.html not found, failing" + exit 1 + fi diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9d404b4..9760ef6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,7 @@ baseURL = "https://example.com/" languageCode = "en-us" title = "Eddie Webb" -theme = "resume" +theme = "hugo-resume" [params] firstName = "Eddie" @@ -44,7 +44,7 @@ theme = "resume" [[params.handles]] name = "Keybase" link = "https://keybase.io/edwardawebb" - icon = "key" + icon = "keybase" [params.google.analytics] trackerID = "XX-123446-01" |