Page 2 of 4

Re: Git not tracking

Posted: Fri Dec 15, 2017 4:01 pm
by Giovanni
There is no way to synchronize it automatically, I cannot define a cron job for this.

Giovanni

Re: Git not tracking

Posted: Fri Dec 15, 2017 4:39 pm
by aGuegu
I believe what SourceForge offered is the automatic sync.

https://sourceforge.net/p/forge/documentation/Git/

How about follow the steps in the Management section, and try it for a few day. If it is not automatic synced, you can close the git feature.

Re: Git not tracking

Posted: Fri Dec 15, 2017 4:57 pm
by aGuegu
I do a little test on SF by creating my repo and enable the git feature.

It would not automatically sync. the svn and git are two independent repos !!!! Sorry for oversimplifing this. Maybe I should try an extra webhook or something.

Re: Git not tracking

Posted: Fri Dec 15, 2017 5:13 pm
by aGuegu
A tool named subgit may fit our need, but it looks heavy and also require hook config.

https://subgit.com/remote-book.html#pre ... hange_hook

Maybe we should stick to the git-svn tools...

Re: Git not tracking

Posted: Fri Dec 15, 2017 6:39 pm
by Giovanni
Hi,

The tool is written in Java and there is no Java runtime support on SF.

You could make an automatic update to your local git, the result would be basically the same. Both windows and linux allow to schedule jobs.

Giovanni

Re: Git not tracking

Posted: Sat Dec 16, 2017 5:10 pm
by Korken
I will look into making a daily cron job to run on Travis based of wurstnase commands.

Re: Git not tracking

Posted: Sat Dec 16, 2017 5:37 pm
by Giovanni
That would be great, thanks.

Giovanni

Re: Git not tracking

Posted: Sun Dec 17, 2017 5:04 pm
by Korken
Hi, I have it working now.

Here is the travis config + script:
https://github.com/korken89/travis_chibi

Here is my current place where Travis uploads it:
https://github.com/korken89/ChibiOS

Here is the travis:
https://travis-ci.org/korken89/travis_chibi

Instructions to set it up:
1. Generate a personal access token on Github
2. Create an environment variable in Travis named TRAVIS_TOKEN with the personal access token
3. Create the chibios repository (where it should go, ChibiOS in my case)
4. Update the script with the correct path to the chibios repository (REMOTE_URL)
5. Enable travis on the travis_chibi
6. Push everything to make travis run
7. Set up a daily cron job on travis_chibi in its settings
8. ???
9. Profit

Re: Git not tracking

Posted: Sun Dec 17, 2017 5:17 pm
by Korken
You can see the cron job running here:
https://travis-ci.org/korken89/travis_chibi/builds

Re: Git not tracking

Posted: Mon Dec 18, 2017 3:26 am
by aGuegu
Korken wrote:Hi, I have it working now.

Here is the travis config + script:
https://github.com/korken89/travis_chibi

Here is my current place where Travis uploads it:
https://github.com/korken89/ChibiOS

Here is the travis:
https://travis-ci.org/korken89/travis_chibi

Instructions to set it up:
1. Generate a personal access token on Github
2. Create an environment variable in Travis named TRAVIS_TOKEN with the personal access token
3. Create the chibios repository (where it should go, ChibiOS in my case)
4. Update the script with the correct path to the chibios repository (REMOTE_URL)
5. Enable travis on the travis_chibi
6. Push everything to make travis run
7. Set up a daily cron job on travis_chibi in its settings
8. ???
9. Profit


Great Job.