New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement transifex addon #400
Conversation
meatballhat
commented
Mar 3, 2015
- get a lot of feedback
- change a lot of things
- make it work
- profit 💸
based on impl from openstack http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/scripts
end | ||
|
||
def tx_set_source_options | ||
@tx_set_source_options ||= [].tap do |o| |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
which does not exist here 🤦
end | ||
|
||
def update | ||
sh.cmd "tx push --source --translations --no-interactive", echo: true |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
and rename vars to match config params
EOF | ||
end | ||
|
||
def update |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
end | ||
|
||
def source_push | ||
sh.raw "echo $TRAVIS_JOB_NUMBER | grep -q -E '\\.#{tx_config[:auto_push][:job]}$'", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
apparently pip doesn't exactly enjoy being installed with --user when in a virtualenv, so let's make sure that it just runs non-`--user` when in a virtualenv.
Which effecively makes auto-push enabled for all jobs; we'll try to automate once-per-build later.
…ravis-build into db-implement-transifex-addon
token: '', | ||
auto_push: { | ||
enabled: true, | ||
job: 1, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This si superseded by travis-ci/dpl#277. |