mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Add Circle CI configuration
This commit is contained in:
parent
c6cda685e3
commit
eab0d725f0
1 changed files with 27 additions and 0 deletions
27
circle.yml
Normal file
27
circle.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# https://circleci.com/docs/install-and-use-yarn/
|
||||
|
||||
machine:
|
||||
environment:
|
||||
YARN_VERSION: 0.18.1
|
||||
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- |
|
||||
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
|
||||
echo "Download and install Yarn."
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
|
||||
else
|
||||
echo "The correct version of Yarn is already installed."
|
||||
fi
|
||||
override:
|
||||
- yarn install
|
||||
cache_directories:
|
||||
- ~/.yarn
|
||||
- ~/.cache/yarn
|
||||
|
||||
test:
|
||||
pre:
|
||||
- yarn run build
|
||||
override:
|
||||
- yarn test
|
||||
Loading…
Add table
Reference in a new issue