[build/ci] added buddybuild postclone script
This commit is contained in:
parent
1e777f8296
commit
f75f1380b8
|
@ -62,4 +62,5 @@ coverage
|
|||
yarn.lock
|
||||
tests
|
||||
lib/.watchmanconfig
|
||||
buddybuild_postclone.sh
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue