Select the continuous integration system you're using from the options above
On AppVeyor, you can install Yarn as part of your build by adding this to your appveyor.yml
:
install:
- choco install yarn
- refreshenv
cache:
- "%LOCALAPPDATA%/Yarn"
On CircleCI, you can install Yarn as part of your build by adding this to your circle.yml
file:
dependencies:
pre:
# Install Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
cache_directories:
- "~/.yarn-cache"
On Codeship, you can install Yarn as part of your build by adding this to your Setup Commands in your project settings:
npm install --global yarn
If you are using Codeship’s Docker Platform, it is recommended to install Yarn via our Debian/Ubuntu package instead.
On Travis CI, you can install Yarn as part of your build by adding this to your .travis.yml
file:
before_install:
# Repo for newer Node.js versions
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
cache:
directories:
- $HOME/.yarn-cache
← 이전: 버전 제어와 함께 사용하기