Skip to content

Commit

Permalink
Use yarn in drone
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Dec 20, 2017
1 parent d99473b commit 2753ac7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,11 @@ pipeline:
when:
event: [push, pull_request]

npm:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- ./tests/drone/npm-install.sh
when:
event: [push, pull_request]

bower:
image: owncloudci/php:${PHP_VERSION}
yarn:
image: webhippie/nodejs
pull: true
commands:
- ./tests/drone/bower-install.sh
- ./tests/drone/yarn-install.sh
when:
event: [push, pull_request]

Expand Down
10 changes: 10 additions & 0 deletions tests/drone/yarn-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -eo pipefail

if [[ "$(pwd)" == "$(cd "$(dirname "$0")"; pwd -P)" ]]; then
echo "Can only be executed from project root!"
exit 1
fi

cd build
exec yarn install

0 comments on commit 2753ac7

Please sign in to comment.