From 554cd91500b179e2e74aab33d7908c87bf6b332b Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Tue, 7 Nov 2017 22:37:18 +0100 Subject: [PATCH] Update CI yml files (#716) * Update CI yml files + Upgrade yarn + remove yarn bootstrap (unnecessary) + update circle ci yarn cache * Add current node_modules/.bin to PATH for circleci --- .travis.yml | 4 ++-- appveyor.yml | 2 +- circle.yml | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb6dd87f9..4ceda80b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,11 +11,11 @@ node_js: - '4' before_install: -- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.2 +- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2 - export PATH=$HOME/.yarn/bin:$PATH before_script: -- yarn run bootstrap && yarn run build +- yarn build script: - if [ -n "${LINT-}" ]; then yarn run lint ; fi diff --git a/appveyor.yml b/appveyor.yml index fb817026f..cebb9a0d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,7 +12,7 @@ cache: install: - ps: Install-Product node $env:nodejs_version x64 - - npm install -g yarn@1.0.2 + - npm install -g yarn@1.3.2 - set PATH=%APPDATA%\npm;%PATH% - yarn diff --git a/circle.yml b/circle.yml index 22259ab3b..aeb77bc4a 100644 --- a/circle.yml +++ b/circle.yml @@ -4,7 +4,7 @@ machine: node: version: "node" environment: - PATH: $PATH:./node_modules/.bin + PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:./node_modules/.bin" checkout: post: @@ -14,8 +14,10 @@ checkout: dependencies: override: - yarn + cache_directories: + - ~/.cache/yarn post: - - yarn run bootstrap && yarn run build + - yarn build test: override: