Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit eef45ee

Browse files
committed
autotest
1 parent e35c55d commit eef45ee

File tree

4 files changed

+19
-161
lines changed

4 files changed

+19
-161
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ triggered by pushing a tag to this repo. The tag has the form 2017.0.0-2.
4646
git push origin 2017.0.0-2
4747

4848
* Check later that all builds have completed on docker hub
49+
50+
## dockerhub config
51+
52+
We use the dockerhub autotesting to test every pull request. When you
53+
push a tag, it will build, test, and publish a new container with a
54+
corresponding tag.
55+
56+
Dockerhub build rule:
57+
58+
source type: tag
59+
source: /.*/
60+
docker tag {sourceref}
61+
dockerfile location: configs/intelpython2_core

images.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,16 @@ def __init__(self):
5050
self._readme = env.get_template('tpl.README.md')
5151
self._dockerfile = env.get_template('tpl.Dockerfile')
5252
self._post_push = env.get_template('tpl.post_push')
53+
self._test = env.get_template('tpl.docker-compose.test.yml')
5354

5455
def render(self, conf):
5556
name = conf.name()
5657
with open('configs/%s/README.md' % name,'wb') as fh:
5758
fh.write(self._readme.render(conf).encode('utf-8'))
5859
with open('configs/%s/Dockerfile' % name,'wb') as fh:
5960
fh.write(self._dockerfile.render(conf).encode('utf-8'))
61+
with open('configs/%s/docker-compose.test.yml' % name,'wb') as fh:
62+
fh.write(self._test.render(conf).encode('utf-8'))
6063
with open('configs/%s/hooks/post_push' % name,'wb') as fh:
6164
fh.write(self._post_push.render(conf).encode('utf-8'))
6265

tpls/tpl.docker-compose.test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sut:
2+
build: .
3+
command: python -c sdfsdfds

x.log

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)