Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
next.js
提交
d2b0db81
N
next.js
项目概览
CoCo_Code_Op2
/
next.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
next.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d2b0db81
编写于
4月 22, 2019
作者:
J
Jeremy Bolding
提交者:
Tim Neutkens
4月 22, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rewrote .circleci/config.yml to 2.1 schema (#7103)
上级
29f71bfc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
93 addition
and
43 deletion
+93
-43
.circleci/config.yml
.circleci/config.yml
+93
-43
未找到文件。
.circleci/config.yml
浏览文件 @
d2b0db81
version
:
2
jobs
:
build
:
version
:
2.1
#########################
# Aliases
#########################
aliases
:
-
&store_test_results
store_test_results
:
path
:
~/repo/test_results.xml
-
&persist_to_workspace
persist_to_workspace
:
root
:
~/repo
paths
:
[
'
.'
]
-
&attach_workspace
attach_workspace
:
at
:
.
#########################
# Executors
#########################
executors
:
node
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
#########################
# Commands
#########################
commands
:
yarn_install
:
steps
:
-
checkout
-
run
:
name
:
Installing
d
ependencies
name
:
Installing
D
ependencies
command
:
yarn install --frozen-lockfile
yarn_lint
:
steps
:
-
run
:
name
:
Linting
command
:
yarn lint
-
persist_to_workspace
:
root
:
~/repo
paths
:
[
'
.'
]
test
:
parallelism
:
4
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
test_all
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
name
:
Tests
command
:
yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings --timings-type=classname)
name
:
Run All Tests
command
:
>
yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings --timings-type=classname)
environment
:
JEST_JUNIT_OUTPUT
:
'
reports/junit/js-test-results.xml'
JEST_JUNIT_CLASSNAME
:
'
{filepath}'
-
store_test_results
:
path
:
~/repo/reports
test-ie11
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
test_ie11
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
name
:
Test in ie11
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
ie'
test-safari
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
test_safari
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
name
:
Test in Safari
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
safari'
test-firefox
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
test_firefox
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
name
:
Test in Firefox
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
firefox'
deploy
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
save_npm_token
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
name
:
Potentially save npm token
command
:
'
([[
!
-z
$NPM_TOKEN
]]
&&
echo
"//registry.npmjs.org/:_authToken=$NPM_TOKEN"
>>
~/.npmrc)
||
echo
"Did
not
write
npm
token"'
publish_canary
:
steps
:
-
run
:
name
:
Potentially publish canary release
command
:
'
if
ls
~/.npmrc
>/dev/null
2>&1
&&
[[
$(git
describe
--exact-match
2>
/dev/null
||
:)
=~
-canary
]];
then
yarn
run
lerna
publish
from-git
--npm-tag
canary
--yes;
else
echo
"Did
not
publish";
fi'
publish_stable
:
steps
:
-
run
:
name
:
Potentially publish stable release
command
:
'
if
ls
~/.npmrc
>/dev/null
2>&1
&&
[[
!
$(git
describe
--exact-match
2>
/dev/null
||
:)
=~
-canary
]];
then
yarn
run
lerna
publish
from-git
--yes;
else
echo
"Did
not
publish";
fi'
#########################
# Jobs
#########################
jobs
:
build
:
executor
:
node
steps
:
-
checkout
-
yarn_install
-
yarn_lint
-
*persist_to_workspace
test
:
parallelism
:
4
executor
:
node
steps
:
-
*attach_workspace
-
test_all
-
*store_test_results
test-ie11
:
executor
:
node
steps
:
-
*attach_workspace
-
test_ie11
test-safari
:
executor
:
node
steps
:
-
*attach_workspace
-
test_safari
test-firefox
:
executor
:
node
steps
:
-
*attach_workspace
-
test_firefox
deploy
:
executor
:
node
steps
:
-
*attach_workspace
-
save_npm_token
-
publish_canary
-
publish_stable
#########################
# Workflows
#########################
workflows
:
version
:
2
build-test-and-deploy
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录