mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2025-05-09 04:30:48 -04:00
[WIP] conditions for cron job on travis
This commit is contained in:
parent
283a16c298
commit
a591ea9212
2 changed files with 11 additions and 15 deletions
scripts
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# script for syncing translations from transifex and comitting the changes.
|
||||
# exit if either the pulls or the test fail
|
||||
|
||||
# exit script if any command returns a non-zero return code:
|
||||
set -ev
|
||||
|
||||
npm run pull:editor
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi #exit if pull failed
|
||||
npm run test
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi #exit if test failed
|
||||
npm run test
|
||||
|
||||
# commit any updates and push. Build and release should happen on the push not here.
|
||||
git add .
|
||||
|
||||
git commit -m "pull new editor translations from Transifex"
|
||||
|
||||
git push
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue