diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a76d371 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: node_js +node_js: + - "10" +git: + depth: 2 + quiet: true +install: + - npm install hexo-cli -g +before_script: + - git clone https://github.com/theme-suka/hexo-theme-unit-test.git suka-theme-test --depth=5 + - cd suka-theme-test + - rm -rf .git + - npm i + - chmod +x ./install-theme.sh + - ./install-theme.sh +script: + - \cp -f ./theme_config.yml themes/suka/_config.yml + - hexo clean + - hexo g + - chmod +x ./deploy.sh + - ./deploy.sh > /dev/null +cache: + directories: + - node_modules + - themes/suka/node_modules \ No newline at end of file diff --git a/_config.yml b/_config.example.yml similarity index 100% rename from _config.yml rename to _config.example.yml