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
39d90d0c
Commit
39d90d0c
authored
Oct 20, 2016
by
杨奕
Committed by
GitHub
Oct 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #526 from QingWei-Li/fix/update-test-config
Update test config
parents
94d987f9
604813aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
.travis.yml
.travis.yml
+1
-0
Makefile
Makefile
+3
-0
build/cooking.test.js
build/cooking.test.js
+10
-7
build/deploy-ci.sh
build/deploy-ci.sh
+3
-3
package.json
package.json
+1
-1
No files found.
.travis.yml
View file @
39d90d0c
...
...
@@ -6,6 +6,7 @@ cache:
-
node_modules
-
travis_phantomjs
before_install
:
-
export TRAVIS_COMMIT_MSG="[deploy] $(git log --format='%h - %B' --no-merges -n 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;
...
...
Makefile
View file @
39d90d0c
...
...
@@ -32,6 +32,9 @@ pub:
pub-all
:
npm run pub:all
test
:
npm run
test
:watch
help
:
@
echo
"
\0
33[35mmake
\0
33[0m
\0
33[1m命令使用说明
\0
33[0m"
@
echo
"
\0
33[35mmake install
\0
33[0m
\t\0
33[0m
\t\0
33[0m
\t\0
33[0m
\t
--- 安装依赖"
...
...
build/cooking.test.js
View file @
39d90d0c
var
path
=
require
(
'
path
'
);
var
cooking
=
require
(
'
cooking
'
);
var
config
=
require
(
'
./config
'
);
var
ProgressBarPlugin
=
require
(
'
progress-bar-webpack-plugin
'
);
var
jsLoader
=
process
.
env
.
CI_ENV
?
'
isparta-loader
'
:
'
isparta-loader!eslint-loader
'
;
cooking
.
set
({
entry
:
'
./src/index.js
'
,
extends
:
[
'
vue2
'
,
'
lint
'
],
extends
:
process
.
env
.
CI_ENV
?
[
'
vue2
'
]
:
[
'
vue2
'
,
'
lint
'
],
minimize
:
false
,
alias
:
config
.
alias
,
postcss
:
config
.
postcss
,
sourceMap
:
'
#inline-source-map
'
});
cooking
.
add
(
'
vue.loaders.js
'
,
'
isparta-loader!eslint-loader
'
);
cooking
.
add
(
'
vue.loaders.js
'
,
jsLoader
);
cooking
.
add
(
'
loader.js.exclude
'
,
config
.
jsexclude
);
cooking
.
add
(
'
preLoader.
js
'
,
{
cooking
.
add
(
'
preLoader.
0
'
,
{
test
:
/
\.
js$/
,
loader
:
'
isparta-loader!eslint-loader
'
,
exclude
:
config
.
jsexclude
loader
:
'
isparta
'
,
exclude
:
config
.
jsexclude
,
include
:
/src|packages/
});
cooking
.
add
(
'
plugins.process
'
,
new
ProgressBarPlugin
());
if
(
!
process
.
env
.
CI_ENV
)
{
cooking
.
add
(
'
plugins.process
'
,
new
ProgressBarPlugin
());
}
module
.
exports
=
cooking
.
resolve
();
build/deploy-ci.sh
View file @
39d90d0c
...
...
@@ -5,11 +5,11 @@ if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
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
"
git config user.name
"
$(
git log
--no-merges
-n
1
--format
=
%an
)
"
git config user.email
"
$(
git log
--no-merges
-n
1
--format
=
%ae
)
"
rm
-rf
*
cp
-rf
../../examples/element-ui/
**
.
git add
-A
.
git commit
-m
"
$TRAVIS_COMMIT
"
git commit
-m
"
$TRAVIS_COMMIT
_MSG
"
git push origin master
fi
package.json
View file @
39d90d0c
...
...
@@ -21,7 +21,7 @@
"clean"
:
"rimraf lib && rimraf packages/*/lib"
,
"lint"
:
"eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet"
,
"test:watch"
:
"karma start test/unit/karma.conf.js"
,
"test"
:
"npm run lint && karma start test/unit/karma.conf.js --single-run"
"test"
:
"npm run lint &&
CI_ENV=/dev/
karma start test/unit/karma.conf.js --single-run"
},
"repository"
:
{
"type"
:
"git"
,
...
...
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