Skip to content

Commit bdc3cc4

Browse files
committedFeb 25, 2017
Changed TravisCI: Replaced NPM with Yarn, leveraged Travis caching yarn's cache
1 parent d9d86f4 commit bdc3cc4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
vendor/
33
composer.lock
44
npm-debug.log
5+
yarn.lock

‎.travis.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,29 @@ cache:
1616
directories:
1717
- "${HOME}/bin"
1818
- "${HOME}/.composer/cache/files"
19+
- "${HOME}/.npm"
20+
- "${HOME}/.yarn-cache"
21+
1922
before_install:
2023
- gpg --keyserver hkp://keys.gnupg.net --recv-keys C4133165DF5EB4BAEABDADCACF1E7823C5339B59
24+
- npm set loglevel error
25+
- npm set progress false
2126

2227
install:
2328
- if ! shellcheck --version ; then
2429
curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;
2530
fi
2631
- shellcheck --version
32+
- npm install -g yarn
2733

2834
script:
2935
- gpg --verify ./bin/install.sh.sig
3036
- shellcheck ./bin/install.sh
3137
- composer self-update || true
3238
- composer validate
3339
- composer install --no-progress --no-suggest
34-
- npm install
35-
- npm run test
40+
- yarn install --no-progress
41+
- yarn run test
3642
- ./vendor/bin/behat --version
3743
- ./vendor/bin/codecept --version
3844
- ./vendor/bin/composer -V

0 commit comments

Comments
 (0)
Please sign in to comment.