Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d2b0db81
Commit
d2b0db81
authored
Apr 22, 2019
by
Jeremy Bolding
Committed by
Tim Neutkens
Apr 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrote .circleci/config.yml to 2.1 schema (#7103)
parent
29f71bfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
43 deletions
+93
-43
config.yml
.circleci/config.yml
+93
-43
No files found.
.circleci/config.yml
View file @
d2b0db81
version
:
2
version
:
2.1
jobs
:
build
:
#########################
# 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
:
docker
:
-
image
:
circleci/node:8-browsers
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
working_directory
:
~/repo
#########################
# Commands
#########################
commands
:
yarn_install
:
steps
:
steps
:
-
checkout
-
run
:
-
run
:
name
:
Installing
d
ependencies
name
:
Installing
D
ependencies
command
:
yarn install --frozen-lockfile
command
:
yarn install --frozen-lockfile
yarn_lint
:
steps
:
-
run
:
-
run
:
name
:
Linting
name
:
Linting
command
:
yarn lint
command
:
yarn lint
-
persist_to_workspace
:
test_all
:
root
:
~/repo
paths
:
[
'
.'
]
test
:
parallelism
:
4
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
steps
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
Tests
name
:
Run All Tests
command
:
yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings --timings-type=classname)
command
:
>
yarn testall $(circleci tests glob "test/**/*.test.*" | circleci tests split --split-by=timings --timings-type=classname)
environment
:
environment
:
JEST_JUNIT_OUTPUT
:
'
reports/junit/js-test-results.xml'
JEST_JUNIT_OUTPUT
:
'
reports/junit/js-test-results.xml'
JEST_JUNIT_CLASSNAME
:
'
{filepath}'
JEST_JUNIT_CLASSNAME
:
'
{filepath}'
-
store_test_results
:
test_ie11
:
path
:
~/repo/reports
test-ie11
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
steps
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
Test in ie11
name
:
Test in ie11
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
environment
:
BROWSERSTACK
:
'
true'
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
ie'
BROWSER_NAME
:
'
ie'
test-safari
:
test_safari
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
steps
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
Test in Safari
name
:
Test in Safari
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
environment
:
BROWSERSTACK
:
'
true'
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
safari'
BROWSER_NAME
:
'
safari'
test-firefox
:
test_firefox
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
steps
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
Test in Firefox
name
:
Test in Firefox
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
command
:
'
if
[[
!
-z
$BROWSERSTACK_USERNAME
]];
then
yarn
testall
test/integration/production/;
else
echo
"Not
running
for
PR";
fi'
environment
:
environment
:
BROWSERSTACK
:
'
true'
BROWSERSTACK
:
'
true'
BROWSER_NAME
:
'
firefox'
BROWSER_NAME
:
'
firefox'
deploy
:
save_npm_token
:
docker
:
-
image
:
circleci/node:8-browsers
working_directory
:
~/repo
steps
:
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
Potentially save npm token
name
:
Potentially save npm token
command
:
'
([[
!
-z
$NPM_TOKEN
]]
&&
echo
"//registry.npmjs.org/:_authToken=$NPM_TOKEN"
>>
~/.npmrc)
||
echo
"Did
not
write
npm
token"'
command
:
'
([[
!
-z
$NPM_TOKEN
]]
&&
echo
"//registry.npmjs.org/:_authToken=$NPM_TOKEN"
>>
~/.npmrc)
||
echo
"Did
not
write
npm
token"'
publish_canary
:
steps
:
-
run
:
-
run
:
name
:
Potentially publish canary release
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'
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
:
-
run
:
name
:
Potentially publish stable release
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'
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
:
workflows
:
version
:
2
version
:
2
build-test-and-deploy
:
build-test-and-deploy
:
...
...
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