Git not tracking Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Git not tracking

Post by Giovanni »

There is no way to synchronize it automatically, I cannot define a cron job for this.

Giovanni
User avatar
aGuegu
Posts: 29
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 5 times

Re: Git not tracking

Post 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.
User avatar
aGuegu
Posts: 29
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 5 times

Re: Git not tracking

Post 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.
User avatar
aGuegu
Posts: 29
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 5 times

Re: Git not tracking

Post 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...
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Git not tracking

Post 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
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Git not tracking

Post by Korken »

I will look into making a daily cron job to run on Travis based of wurstnase commands.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Git not tracking

Post by Giovanni »

That would be great, thanks.

Giovanni
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Git not tracking

Post 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
Last edited by Korken on Sun Dec 17, 2017 5:32 pm, edited 1 time in total.
User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Has thanked: 5 times
Been thanked: 6 times

Re: Git not tracking

Post by Korken »

You can see the cron job running here:
https://travis-ci.org/korken89/travis_chibi/builds
User avatar
aGuegu
Posts: 29
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 5 times

Re: Git not tracking

Post 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.
Post Reply