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
b453ce11
Commit
b453ce11
authored
Oct 19, 2016
by
qingwei.li
Committed by
cinwell.li
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update travis config
parent
8d10dda8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
15 deletions
+30
-15
.travis.yml
.travis.yml
+14
-14
build/cooking.demo.js
build/cooking.demo.js
+1
-1
build/deploy-ci.sh
build/deploy-ci.sh
+15
-0
No files found.
.travis.yml
View file @
b453ce11
sudo
:
false
language
:
node_js
node_js
:
-
5
node_js
:
5
cache
:
bundler
:
true
directories
:
-
node_modules
# NPM packag
es
-
travis_phantomjs
-
node_modul
es
-
travis_phantomjs
before_install
:
# Upgrade PhantomJS to v2.1.1.
-
"
export
PHANTOMJS_VERSION=2.1.1"
-
"
export
PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
-
"
if
[
$(phantomjs
--version)
!=
$PHANTOMJS_VERSION
];
then
rm
-rf
$PWD/travis_phantomjs;
mkdir
-p
$PWD/travis_phantomjs;
fi"
-
"
if
[
$(phantomjs
--version)
!=
$PHANTOMJS_VERSION
];
then
wget
https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
-O
$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2;
fi"
-
"
if
[
$(phantomjs
--version)
!=
$PHANTOMJS_VERSION
];
then
tar
-xvf
$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
-C
$PWD/travis_phantomjs;
fi"
-
"
phantomjs
--version"
-
export PHANTOMJS_VERSION=2.1.1
-
export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
-
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs;
mkdir -p $PWD/travis_phantomjs; fi
-
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
-O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi
-
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
-C $PWD/travis_phantomjs; fi
-
phantomjs --version
after_success
:
-
cat ./test/unit/coverage/lcov.info | ./node_modules/.bin/coveralls
-
sh build/deploy-ci.sh
-
cat ./test/unit/coverage/lcov.info | ./node_modules/.bin/coveralls
build/cooking.demo.js
View file @
b453ce11
...
...
@@ -15,7 +15,7 @@ cooking.set({
entry
:
'
./examples/entry.js
'
,
dist
:
'
./examples/element-ui/
'
,
template
:
'
./examples/index.tpl
'
,
publicPath
:
'
/
'
,
publicPath
:
process
.
env
.
CI_ENV
||
'
/
'
,
hash
:
true
,
devServer
:
{
port
:
8085
,
...
...
build/deploy-ci.sh
0 → 100644
View file @
b453ce11
#! /bin/sh
if
[
"
$TRAVIS_BRANCH
"
=
"master"
]
&&
[
"
$GH_TOKEN
"
]
;
then
CI_ENV
=
/dev/ ./node_modules/.bin/cooking build
-c
build/cooking.demo.js
mkdir
temp_web
cd
temp_web
git clone https://
$GH_TOKEN
@github.com/ElementUI/dev.git
&&
cd
dev
git config user.name
"travis"
git config user.email
"travis"
rm
-rf
*
cp
-rf
../../examples/element-ui/
**
.
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT
"
git push origin master
fi
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