Skip to content

Commit

Permalink
merge(#438): mergeviosey/chore/ci into canary
Browse files Browse the repository at this point in the history
chore/feat(ci): bring up travis
  • Loading branch information
neoFelhz authored Jul 24, 2017
2 parents 4dd0cc5 + 2048313 commit 363333c
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
language: node_js
node_js:
- "4"
node_js:
- "7"
install:
- npm install gulp -g
- npm install hexo-cli -g
before_script:
- git clone https://github.com/neko-dev/hexo-theme-test-ci.git
- cd hexo-theme-test-ci
- rm -rf .git
- cd _hexo
- npm install
- git clone https://github.com/viosey/hexo-theme-material.git themes/material
- cd themes/material
- git checkout -t origin/canary
- git pull
- rm -rf .git
- cd ..
- cd ..
- cd ..
- cp -i _config.theme.yml _hexo/themes/material/_config.yml
- cd _hexo
script:
- hexo clean
- hexo g
- mkdir ./deploy-git
- cd ./deploy-git
- git init
- git config --global push.default matching
- git config --global user.email "${GitHubEmail}"
- git config --global user.name "${GitHubUser}"
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepo}.git
- git pull origin ${DeployBranch}
- rm -rf ./*
- cp -rf ../public/* ./
- git add --all .
- git commit -m "Travis Auto Tester for Material Theme"
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepo}.git


0 comments on commit 363333c

Please sign in to comment.