Add example site
This commit is contained in:
36
.travis.yml
Normal file
36
.travis.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
dist: xenial
|
||||
sudo: required
|
||||
|
||||
language: python
|
||||
python: 3.7
|
||||
|
||||
install:
|
||||
- pip install markdata
|
||||
|
||||
script:
|
||||
# Python tests:
|
||||
- cd code/py
|
||||
- pip install -r requirements.txt
|
||||
- pytest test.py
|
||||
- cd -
|
||||
|
||||
# Node.js tests:
|
||||
- cd code/js
|
||||
- npm install
|
||||
- ./node_modules/mocha/bin/mocha
|
||||
- cd -
|
||||
|
||||
after_success:
|
||||
# Build our content:
|
||||
- markdata --root . src content/post
|
||||
|
||||
# Build our site:
|
||||
- hugo
|
||||
|
||||
deploy:
|
||||
provider: pages
|
||||
skip_cleanup: true
|
||||
github_token: $GITHUB_TOKEN
|
||||
local_dir: public
|
||||
on:
|
||||
branch: master
|
Reference in New Issue
Block a user