[build/ci] added buddybuild postclone script

This commit is contained in:
Salakar 2017-06-22 14:15:44 +01:00
parent 1e777f8296
commit f75f1380b8
3 changed files with 8 additions and 2 deletions

View File

@ -62,4 +62,5 @@ coverage
yarn.lock
tests
lib/.watchmanconfig
buddybuild_postclone.sh

7
buddybuild_postclone.sh Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Copy firebase lib into tests directory
cp -R $(node --eval "console.log(require('path').resolve('./lib'));")/* $(node --eval "console.log(require('path').resolve('./tests/firebase'));")/
# Install /tests npm packages
cd tests && npm install

View File

@ -15,8 +15,6 @@
"tests-watch-start": "watchman watch $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml start",
"tests-watch-stop": "watchman watch-del $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml stop",
"tests-pod-install": "cd tests && npm run ios:pod:install",
"build-copy": "cp -R $(node --eval \"console.log(require('path').resolve('./lib'));\")/* $(node --eval \"console.log(require('path').resolve('./tests/firebase'));\")/",
"postinstall": "test -d \"./tests\" && (npm run build-copy && npm run tests-npm-install) || echo \"Tests folder does not exists - skipping additional testing steps.\"",
"flow": "flow"
},
"repository": {