#5 initial version of testing of ogr
Merged 5 years ago by ttomecek. Opened 5 years ago by jscotka.
rpms/ jscotka/python-ogr f30-gating  into  f30

file added
+9
@@ -0,0 +1,9 @@ 

+ #!/usr/bin/python3

+ 

+ from ogr.abstract import PRStatus

+ from ogr.services.github import GithubService

+ 

+ assert GithubService is not None

+ assert PRStatus is not None

+ 

+ print("Success", GithubService, PRStatus)

file added
+19
@@ -0,0 +1,19 @@ 

+ ---

+ - hosts: localhost

+   roles:

+   - role: standard-test-basic

+     tags:

+     - classic

+     required_packages:

+     - python36

+     - python3-ogr

+     - python3-tox

+     - python3-pytest

+     - make

+     tests:

+     - upstream:

+         dir: .

+         run: ./upstream.sh

+     - simple_app:

+         dir: .

+         run: ./simple.py

file added
+21
@@ -0,0 +1,21 @@ 

+ #/bin/bash

+ set -ex

+ 

+ PROJECT_NAME=ogr

+ ORG=packit-service

+ PACKAGE_NAME=python3-$PROJECT_NAME

+ GITHUB=https://github.com/$ORG/$PROJECT_NAME.git

+ 

+ WHERETOUNPACK=$PROJECT_NAME

+ FIND_VERSION=`rpm -q $PACKAGE_NAME | sed -r "s/.*-$PROJECT_NAME-(.*)\.[a-zA-Z0-9_]+$/\1/"`

+ VERSION="${FIND_VERSION%-*}"

+ 

+ git clone $GITHUB $WHERETOUNPACK

+ (

+     cd $WHERETOUNPACK

+     git checkout tags/$VERSION

+ )

+ cp -rf $WHERETOUNPACK/tests copy_tests

+ rm -rf $WHERETOUNPACK

+ 

+ pytest-3 -v copy_tests/unit

inial version of tests for gating

1 new commit added

  • test: remove atomic from tests, and add new line
5 years ago

1 new commit added

  • move from run to shell, should be better here
5 years ago

1 new commit added

  • move back to run it is fine https://fedoraproject.org/wiki/CI/Standard_Test_Roles
5 years ago

1 new commit added

  • move upstream testing to separate shell script
5 years ago

rebased onto 505794a3d4652bf09b2e9c2af5305a700d46b619

5 years ago

rebased onto 58daae3

5 years ago

I thought we merged this, whoops.

Pull-Request has been merged by ttomecek

5 years ago