Skip to content

setup: Make sure CI configuration is as expected

Evangelos Ribeiro Tzaras requested to merge add-ci-if-not-present into master

Fixes #3 (closed)

A sample session on a forked repo:

fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [8:57:23] 
> $ ./setup-pureos-pkg-repo -i 2334
CI configured as expected
Repo https://source.puri.sm/evangelos.tzaras/vvmplayer.git setup complete.
                                                                                                                                                                                                                                                                                          
fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [8:57:42] 
> $ echo Butchered CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/215c784420d4af22567141e41e61915ba430db81
Butchered CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/215c784420d4af22567141e41e61915ba430db81
                                                                                                                                                                                                                                                                                          
fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [8:59:11] 
> $ ./setup-pureos-pkg-repo -i 2334
Adjusting CI configuration
Repo https://source.puri.sm/evangelos.tzaras/vvmplayer.git setup complete.
                                                                                                                                                                                                                                                                                          
fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [8:59:32] 
> $ echo Adjusted CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/f485741103538fa2dab9089b87386c17c208c360
Adjusted CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/f485741103538fa2dab9089b87386c17c208c360
                                                                                                                                                                                                                                                                                          
fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [9:00:10] 
> $ echo Deleted CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/08f4a059ed2bea59bdfa9479f6a655a18b52aff1
Deleted CI config: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/08f4a059ed2bea59bdfa9479f6a655a18b52aff1
                                                                                                                                                                                                                                                                                          
fortysixandtwo@zeus ~/git/librem5-dev-tools                                                                                                                                                                                                                                     [9:06:56] 
> $ ./setup-pureos-pkg-repo -i 2334
Did not find file 'debian/pureos-ci.yml' in branch 'pureos/latest' of project 'vvmplayer'
CI configuration change committed: https://source.puri.sm/evangelos.tzaras/vvmplayer/-/commit/a68f80f2bbf773ce7f8e851ba4825aded87b7fc5
Repo https://source.puri.sm/evangelos.tzaras/vvmplayer.git setup complete.

Maybe instead of actually committing we only want to check by default and make changes only when -c or --ci-config is given

Merge request reports