Skip to content

New job for running "autobuild/transifex-push-template.sh" - #1223

Closed
AnishGG wants to merge 8 commits into
synfig:masterfrom
AnishGG:1150
Closed

AnishGG wants to merge 8 commits into
synfig:masterfrom
AnishGG:1150

Conversation

@AnishGG

@AnishGG AnishGG commented Mar 11, 2020

Copy link
Copy Markdown
Member

Issue: #1150
@ice0
I have pushed a new job and removed all other jobs for the sake of fast testing. But the job is failing.
Is this expected behaviour?

@ice0

ice0 commented Mar 11, 2020

Copy link
Copy Markdown
Collaborator

@AnishGG Yes, there is an error in the .po file. So the script should fail.

@AnishGG

AnishGG commented Mar 11, 2020

Copy link
Copy Markdown
Member Author

Alright!
I will add all other jobs and ask for a review then.

@AnishGG
AnishGG marked this pull request as ready for review March 11, 2020 09:51
@AnishGG
AnishGG requested a review from ice0 March 11, 2020 15:02

@ice0 ice0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .travis.yml
name: "Transifex push template Ubuntu 16.04 Xenial"
sudo: required
dist: xenial
script: bash autobuild/transifex-push-translations.sh

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also i suggest to change shell inside transifex-push-translations.sh from /bin/sh to /bin/bash, as pushd/popd cannot be executed by sh

@AnishGG

AnishGG commented Mar 12, 2020

Copy link
Copy Markdown
Member Author

Please do not forget to add condition:
job must run only on translations branch.

https://docs.travis-ci.com/user/conditional-builds-stages-jobs/

Oh, I see.
According to my knowledge, if we push a commit to a specific branch(say 'X'), it should trigger the branch X's .travis.yml, right?
Please correct me if I am wrong.

@ice0

ice0 commented Mar 12, 2020 •

Copy link
Copy Markdown
Collaborator

According to my knowledge, if we push a commit to a specific branch(say 'X'), it should trigger the branch X's .travis.yml, right?
Please correct me if I am wrong.

Yes, it triggers .travis.yml from that branch.

@AnishGG

AnishGG commented Mar 12, 2020

Copy link
Copy Markdown
Member Author

According to my knowledge, if we push a commit to a specific branch(say 'X'), it should trigger the branch X's .travis.yml, right?
Please correct me if I am wrong.

Yes, it triggers .travis.yml from that branch.

Then we don't need an if condition, right? Because we will be editing only that branch's .travis.yml.

@ice0

ice0 commented Mar 12, 2020

Copy link
Copy Markdown
Collaborator

Then we don't need an if condition, right? Because we will be editing only that branch's .travis.yml.

The main idea was to update translations branch from master branch every time when we need to update translations. If we do different versions of .travis.yml when we need to resolve merge conflicts every time when we do updates to this branch.

@AnishGG

AnishGG commented Mar 12, 2020

Copy link
Copy Markdown
Member Author

The main idea was to update translations branch from master branch every time when we need to update translations. If we do different versions of .travis.yml when we need to resolve merge conflicts every time when we do updates to this branch.

Oh!
Got it now. Then I will introduce the if condition!
One more doubt: should I make the P.R. to master branch or translations branch then?

@ice0

ice0 commented Mar 12, 2020

Copy link
Copy Markdown
Collaborator

Oh!
Got it now. Then I will introduce the if condition!
One more doubt: should I make the P.R. to master branch or translations branch then?

To master branch :)

@AnishGG

AnishGG commented Mar 12, 2020

Copy link
Copy Markdown
Member Author

Oh!
Got it now. Then I will introduce the if condition!
One more doubt: should I make the P.R. to master branch or translations branch then?

To master branch :)

Alright!
I might have to open a new PR then. Will close this if required

@ice0

ice0 commented Mar 12, 2020

Copy link
Copy Markdown
Collaborator

You can change branch by editing this PR.

@AnishGG

AnishGG commented Mar 12, 2020

Copy link
Copy Markdown
Member Author

Okay, will try that!

@AnishGG
AnishGG changed the base branch from translations to master March 13, 2020 06:54
@AnishGG AnishGG closed this Mar 13, 2020
@AnishGG
AnishGG deleted the 1150 branch July 14, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants