#76 Add statistic page. Old one stable end new one
Closed by sturivny. Opened by sturivny.
Unknown source master

Download 76.patch

Get packages statistic and generate file

Navigate to folder with tests:

$ cd AtomicCi/statictic_page/new_page/

Create python virtualenv with python3
and activate it:

$ virtualenv -p python3 envname
$ . envname/bin/activate

Install requirenments:

$ pip install -r requirenments.txt

Edit file config.py, add upstreamfirst_api_key and dist_git_api_key. You can generate then on settings page:

upstreamfirst_api_key = ''
dist_git_api_key = ''
UPSTREAMFIRST_URL = 'https://upstreamfirst.fedorainfracloud.org/'
DIST_GIT_URL = 'https://src.fedoraproject.org/'
FILE_UPLOAD_2_WIKI = 'upload_to_wiki.txt'
FILE_PACKAGES = 'upstreamfirst_packages.txt'

Also you can change names of the files FILE_UPLOAD_2_WIKI and FILE_PACKAGES

To run code just execute in a command line:

$ python runner.py

File upstreamfirst_packages.txt will be created.
You can simply check progress by executing following command in another terminal:

$ tail -f upstreamfirst_packages.txt

After script will be finished, find upload_to_wiki.txt. Use data to upload it to the wiki.

The result: https://fedoraproject.org/wiki/CI/Tests/new-stat#This_page_is_automatically_updated._Do_not_edit.

1 new commit added

  • Add functionality to get packages from URL

Pull-Request has been closed by sturivny

Metadata