diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d0c4681 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,53 @@ +language: node_js + +os: linux + +cache: false + +node_js: + - "8" + - "node" + +before_script: + - export DEPS=$(node -e "const deps=require('./package.json').peerDependencies;console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));") + - npm install $DEPS + +script: + - echo "Running tests against $(node -v) ..." + - npm run lint + +jobs: + include: + - stage: github pages + node_js: "10" + git: + clone: false + script: + - echo "Publish site to github pages ..." + - git clone --recurse-submodules https://github.com/ppoffice/hexo-theme-icarus.git -b site $TRAVIS_BUILD_DIR + - cd $TRAVIS_BUILD_DIR/themes/icarus + - git fetch origin $TRAVIS_COMMIT && git merge $TRAVIS_COMMIT + - export DEPS=$(node -e "const deps=require('./package.json').peerDependencies;console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));") + - cd $TRAVIS_BUILD_DIR + - npm install -g hexo-cli + - npm install + - npm install $DEPS + - cp _config.theme.yml themes/icarus/_config.yml + - hexo g + deploy: + provider: pages + token: $GITHUB_TOKEN + keep_history: false + local_dir: public + skip_cleanup: true + on: + tags: true + + - stage: github release + node_js: "10" + script: echo "Deploying to github release ..." + deploy: + provider: releases + token: $GITHUB_TOKEN + on: + tags: true diff --git a/README.md b/README.md index e322de4..23ec0a6 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ blog feature-rich and powerful.
Atom One Light | -Monokai | -Kimbie Dark | +Atom One Light | +Monokai | +Kimbie Dark |
---|---|---|---|---|---|
- | - | + | + | + |
widgets: -- type: profile - position: left -- type: recent_posts - position: left+ - type: profile + position: left + - type: recent_posts + position: left
widgets: null @@ -180,9 +180,9 @@ Icarus allows you to configure your site on a per-page or per-layout basis.