Skip to content

Commit

Permalink
Update Travis config and add Netlify preview of example site
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Sep 7, 2020
1 parent be62c89 commit 615596b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 13 deletions.
16 changes: 4 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
language: python
python: 3.6
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/lektor/builds
python: 3.7

install:
- "pip install -U pip"
- "pip install Lektor"
install: "ci/install.sh"

script:
- "cd example-site"
- "lektor build -v"
script: "ci/build.sh"

deploy:
provider: script
script: "lektor deploy ghpages"
script: "lektor deploy ghpages --output-path website-lektor-icon-build"
on:
branch: master
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

*Copyright © 2016-2020 Lektor-Icon Contributors and others (see [AUTHORS.txt](https://github.com/spyder-ide/lektor-icon/blob/master/AUTHORS.txt))*

[![Travis status](https://travis-ci.org/spyder-ide/lektor-icon.svg?branch=master)](https://travis-ci.org/spyder-ide/lektor-icon)
[![Netlify Status](https://api.netlify.com/api/v1/badges/8b768d7f-1623-4134-8cea-0d049894d99c/deploy-status)](https://app.netlify.com/sites/lektor-icon-preview/deploys)

![Screenshot of Lektor-Icon screenshot section](./images/mainpage-screenshots.png)

This a heavily modified and expanded version of the [FreeHTML5](https://freehtml5.co/) ["Icon" template](https://freehtml5.co/icon-free-website-template-using-bootstrap/) ported to the [Lektor](https://www.getlektor.com/) static CMS by [Daniel Althviz](https://dalthviz.github.io/) and the [Spyder](https://www.spyder-ide.org/) development team; it was initially derived from the [Hugo port](https://github.com/SteveLane/hugo-icon) of the Icon theme by [Steve Lane](https://gtown-ds.netlify.com/).
Expand Down
4 changes: 4 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -ex

cd example-site
lektor build -v --output-path website-lektor-icon-build
4 changes: 4 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -ex

pip3 install -U pip
pip3 install -U Lektor
2 changes: 1 addition & 1 deletion example-site/themes/lektor-icon
15 changes: 15 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# base = "project/"

# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "example-site/website-lektor-icon-build/"

# Default build command.
command = "ci/install.sh && ci/build.sh"
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7

0 comments on commit 615596b

Please sign in to comment.