[Git][NTPsec/ntpsec][master] Run python tests using gitlab ci IFF python >= 2.7
Matt Selsky
gitlab at mg.gitlab.com
Wed Sep 27 19:15:43 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
d4c9b9c7 by Matt Selsky at 2017-09-27T14:18:30-04:00
Run python tests using gitlab ci IFF python >= 2.7
"discover" feature was added to unittest in python 2.7
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,6 +39,7 @@ gitlab-basic:
script:
- apt-get update -qq && apt-get install -y -qq bison libcap-dev pps-tools python-dev
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- gitlab-org
@@ -47,6 +48,7 @@ gitlab-refclocks:
script:
- apt-get update -qq && apt-get install -y -qq bison libcap-dev pps-tools python-dev
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- gitlab-org
@@ -54,6 +56,7 @@ debian-wheezy-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- debian-wheezy
@@ -61,6 +64,7 @@ debian-wheezy-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- debian-wheezy
@@ -68,6 +72,7 @@ debian-jessie-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- debian-jessie
@@ -75,6 +80,7 @@ debian-jessie-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- debian-jessie
@@ -84,6 +90,7 @@ gcc-7-basic:
script:
- apt-get update -qq && apt-get install -y -qq bison libcap-dev pps-tools python-dev
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- gitlab-org
@@ -93,6 +100,7 @@ gcc-7-refclocks:
script:
- apt-get update -qq && apt-get install -y -qq bison libcap-dev pps-tools python-dev
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- gitlab-org
@@ -100,6 +108,7 @@ freebsd-11-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- freebsd-11
@@ -107,6 +116,7 @@ freebsd-11-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- freebsd-11
@@ -128,6 +138,7 @@ centos-7-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- centos-7
@@ -135,6 +146,7 @@ centos-7-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- centos-7
@@ -142,6 +154,7 @@ fedora-24-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- fedora-24
@@ -149,6 +162,7 @@ fedora-24-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- fedora-24
@@ -156,6 +170,7 @@ fedora-25-basic:
<<: *job_definition
script:
- python ./waf configure build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- fedora-25
@@ -163,6 +178,7 @@ fedora-25-refclocks:
<<: *job_definition
script:
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- fedora-25
@@ -172,6 +188,7 @@ python3:
script:
- apt-get update -qq && apt-get install -y -qq bison libcap-dev pps-tools
- python ./waf configure --refclock=all build
+ - python -m unittest discover -s build/main/tests/pylib
tags:
- gitlab-org
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d4c9b9c772573698135690bff48173148ff5b238
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d4c9b9c772573698135690bff48173148ff5b238
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170927/13cbde3a/attachment.html>
More information about the vc
mailing list