Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
d56ac5d3
Commit
d56ac5d3
authored
Nov 17, 2016
by
qingwei.li
Committed by
Leopoldthecoder
Nov 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: add elementt bot
parent
11eaa98a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
build/deploy-ci.sh
build/deploy-ci.sh
+10
-10
No files found.
build/deploy-ci.sh
View file @
d56ac5d3
#! /bin/sh
mkdir
temp_web
git config
--global
user.name
"element
_
bot"
git config
--global
user.email
"
element_bot
"
git config
--global
user.name
"element
-
bot"
git config
--global
user.email
"
wallement@gmail.com
"
# build dev site
if
[
"
$
GH
_TOKEN
"
]
;
then
if
[
"
$
ROT
_TOKEN
"
]
;
then
npm run build:file
&&
CI_ENV
=
/dev/
$TRAVIS_BRANCH
/ node_modules/.bin/cooking build
-c
build/cooking.demo.js
cd
temp_web
git clone https://
$
GH
_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
git clone https://
$
ROT
_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
mkdir
$TRAVIS_BRANCH
rm
-rf
$TRAVIS_BRANCH
/
**
cp
-rf
../../examples/element-ui/
**
$TRAVIS_BRANCH
/
...
...
@@ -18,9 +18,9 @@ if [ "$GH_TOKEN" ]; then
fi
# push theme-default
if
[
"
$
GH
_TOKEN
"
]
;
then
if
[
"
$
ROT
_TOKEN
"
]
;
then
cd
temp_web
git clone
-b
$TRAVIS_BRANCH
https://
$
GH
_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
git clone
-b
$TRAVIS_BRANCH
https://
$
ROT
_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
rm
-rf
*
cp
-rf
../../packages/theme-default/
**
.
git add
-A
.
...
...
@@ -29,14 +29,14 @@ if [ "$GH_TOKEN" ]; then
cd
../..
fi
if
[
"
$TRAVIS_TAG
"
]
&&
[
"
$
GH
_TOKEN
"
]
;
then
if
[
"
$TRAVIS_TAG
"
]
&&
[
"
$
ROT
_TOKEN
"
]
;
then
# site sub folder
SUB_FOLDER
=
$(
echo
$TRAVIS_TAG
|
grep
-o
-E
'^\d+\.\d+'
)
# build lib
npm run dist
cd
temp_web
git clone https://
$
GH
_TOKEN
@github.com/ElementUI/lib.git
&&
cd
lib
git clone https://
$
ROT
_TOKEN
@github.com/ElementUI/lib.git
&&
cd
lib
rm
-rf
`
find
*
!
-name
README.md
`
cp
-rf
../../lib/
**
.
git add
-A
.
...
...
@@ -47,7 +47,7 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
# build theme-default
cd
temp_web
git clone https://
$
GH
_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
git clone https://
$
ROT
_TOKEN
@github.com/ElementUI/theme-default.git
&&
cd
theme-default
rm
-rf
*
cp
-rf
../../packages/theme-default/
**
.
git add
-A
.
...
...
@@ -59,7 +59,7 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
# build site
npm run deploy:build
cd
temp_web
git clone
-b
gh-pages https://
$
GH
_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
git clone
-b
gh-pages https://
$
ROT
_TOKEN
@github.com/ElemeFE/element.git
&&
cd
element
# only remove files
mkdir
$SUB_FOLDER
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment