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: 11779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 502 times
Been thanked: 426 times
Contact:

Re: Git not tracking

Postby Giovanni » Fri Dec 15, 2017 4:01 pm

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

Giovanni

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

Re: Git not tracking

Postby aGuegu » Fri Dec 15, 2017 4:39 pm

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: 25
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 4 times

Re: Git not tracking

Postby aGuegu » Fri Dec 15, 2017 4:57 pm

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: 25
Joined: Thu Dec 07, 2017 4:15 am
Has thanked: 1 time
Been thanked: 4 times

Re: Git not tracking

Postby aGuegu » Fri Dec 15, 2017 5:13 pm

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: 11779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 502 times
Been thanked: 426 times
Contact:

Re: Git not tracking

Postby Giovanni » Fri Dec 15, 2017 6:39 pm

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
Location: Luleå, Sweden
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Git not tracking

Postby Korken » Sat Dec 16, 2017 5:10 pm

I will look into making a daily cron job to run on Travis based of wurstnase commands.

User avatar
Giovanni
Site Admin
Posts: 11779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 502 times
Been thanked: 426 times
Contact:

Re: Git not tracking

Postby Giovanni » Sat Dec 16, 2017 5:37 pm

That would be great, thanks.

Giovanni

User avatar
Korken
Posts: 270
Joined: Wed Apr 02, 2014 4:09 pm
Location: Luleå, Sweden
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Git not tracking

Postby Korken » Sun Dec 17, 2017 5:04 pm

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
Location: Luleå, Sweden
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Git not tracking

Postby Korken » Sun Dec 17, 2017 5:17 pm

You can see the cron job running here:
https://travis-ci.org/korken89/travis_chibi/builds

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

Re: Git not tracking

Postby aGuegu » Mon Dec 18, 2017 3:26 am

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.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests