Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tnwhitwell/hugo-startpage-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Whitwell <tom@whitwell.xyz>2018-04-24 17:40:07 +0300
committerTom Whitwell <tom@whitwell.xyz>2018-04-24 17:40:07 +0300
commit09f56d131fa7f0a36d22d14932f26d6de3e98a92 (patch)
tree7a20e1f9cdb955957df972ffc30ea763e7304ba5
parentd66b3a3b8050f7f2567588f348d574fdeb2fc5e6 (diff)
add travis integration
-rw-r--r--.travis.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..e3e562d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,22 @@
+install:
+ - wget https://github.com/gohugoio/hugo/releases/download/v0.38.2/hugo_0.38.2_Linux-64bit.tar.gz
+ - tar xzf hugo_0.38.2_Linux-64bit.tar.gz hugo && chmod +x hugo
+
+script:
+ - cd exampleSite
+ - mkdir content
+ - mkdir -p themes/startpage
+ - cp -a ../layouts themes/startpage/
+ - cp -a ../static themes/startpage/
+ - cp -a ../theme.toml themes/startpage/
+ - ../hugo
+ - sed -i 's/COMMIT_SHA/TRAVIS_COMMIT/' public/startpage.appcache
+
+deploy:
+ provider: pages
+ skip-cleanup: true
+ local_dir: exampleSite/public
+ github-token: $GITHUB_TOKEN
+ keep-history: true
+ on:
+ branch: master