Add test script
This commit is contained in:
parent
ae03634682
commit
d8ca3b7e2f
@ -1,11 +1,13 @@
|
|||||||
#!/usr/bin/env shlax
|
#!/usr/bin/env shlax
|
||||||
from shlax.contrib.gitlab import *
|
from shlax.contrib.gitlab import *
|
||||||
|
|
||||||
|
PYTEST = 'py.test -svv tests'
|
||||||
|
|
||||||
gitlabci = GitLabCIConfig(
|
gitlabci = GitLabCIConfig(
|
||||||
Job('test',
|
Job('test',
|
||||||
stage='test',
|
stage='test',
|
||||||
image='yourlabs/python',
|
image='yourlabs/python',
|
||||||
script='pip install -U .[test] && py.test -svv tests',
|
script='pip install -U .[test] && ' + PYTEST,
|
||||||
),
|
),
|
||||||
Job('pypi',
|
Job('pypi',
|
||||||
stage='deploy',
|
stage='deploy',
|
||||||
@ -14,3 +16,8 @@ gitlabci = GitLabCIConfig(
|
|||||||
only=['tags']
|
only=['tags']
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
test = Script(
|
||||||
|
gitlabci,
|
||||||
|
Run('gitlab-runner exec docker test'),
|
||||||
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user