-
Notifications
You must be signed in to change notification settings - Fork 49k
Migrate to CircleCI2.0 and Add AppVeyor for master-only branch #11605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
|
||
docker: | ||
- image: circleci/node:8 | ||
|
||
environment: | ||
TZ: /usr/share/zoneinfo/America/Los_Angeles | ||
YARN_VERSION: 1.2.1 | ||
TRAVIS_REPO_SLUG: facebook/react | ||
|
||
parallelism: 4 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7 | ||
|
||
- run: | ||
name: Install Yarn | ||
command: | | ||
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then | ||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason to pin the version? docker/node comes with at least yarn 1.2.1 already There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess |
||
fi | ||
|
||
- restore_cache: | ||
name: Restore node_modules cache | ||
keys: | ||
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- v1-node-{{ arch }}-{{ .Branch }}- | ||
- v1-node-{{ arch }}- | ||
|
||
- run: | ||
name: Nodejs Version | ||
command: node --version | ||
|
||
- run: | ||
name: Install Packages | ||
command: yarn install | ||
|
||
- run: | ||
name: Test Packages | ||
command: ./scripts/circleci/test_entry_point.sh | ||
|
||
- save_cache: | ||
name: Save node_modules cache | ||
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
image: Visual Studio 2017 | ||
|
||
# Fix line endings in Windows. (runs before repo cloning) | ||
init: | ||
- git config --global core.autocrlf input | ||
|
||
environment: | ||
matrix: | ||
- nodejs_version: 8 | ||
|
||
# Finish on first failed build | ||
matrix: | ||
fast_finish: true | ||
|
||
platform: | ||
- x64 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
# Disable Visual Studio build and deploy | ||
build: off | ||
deploy: off | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- yarn install | ||
|
||
test_script: | ||
- node --version | ||
- yarn build | ||
- yarn test | ||
|
||
cache: | ||
- node_modules | ||
- "%LOCALAPPDATA%/Yarn" |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth using
8-alpine
?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using
circleci
docker images (https://hub.docker.com/r/circleci/node/tags/)Unfortunately none existent image with Alpine. But this is nice question: Move foward with
8-alpine
(https://hub.docker.com/_/node/) ?