add travis

pull/9/head
tangjinzhou 2018-01-22 16:20:22 +08:00
parent f61c6a4cd3
commit 7e5779617d
2 changed files with 14 additions and 0 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: node_js
sudo: required
node_js:
- 8.2.1
cache:
directories:
- node_modules
script:
- npm run build
after_success:
- git add --all .
- git commit -m "travis ci auto build"
- git push https://github.com/vueComponent/ant-design.git gh-pages

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
npm i
rm -rf dist rm -rf dist
mkdir dist mkdir dist
./node_modules/.bin/webpack --config webpack.prod.config.js ./node_modules/.bin/webpack --config webpack.prod.config.js