diff --git a/.travis.yml b/.travis.yml index 320155a85a1..076663ffa11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,12 +10,15 @@ env: - DB=postgres TEST=pulp - DB=mariadb TEST=pulp - DB=postgres TEST=docs + - DB=postgres TEST=bindings matrix: exclude: - python: '3.6' env: DB=postgres TEST=docs - python: '3.6' env: DB=mariadb TEST=pulp + - python: '3.7' + env: DB=postgres TEST=bindings fast_finish: true services: - postgresql diff --git a/.travis/script.sh b/.travis/script.sh index ec3fa44315a..b146026aa3e 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -33,6 +33,18 @@ if [ "$TEST" = 'docs' ]; then exit fi +if [ "$TEST" = 'bindings' ]; then + cd .. + git clone https://github.com/pulp/pulp-swagger-codegen.git + cd pulp-swagger-codegen + sudo ./generate.sh pulpcore python + sudo ./generate.sh pulp_file python + pip install ./pulpcore-client + pip install ./pulp_file-client + python test_bindings.py + exit +fi + # check the commit message ./.travis/check_commit.sh