Skip to content

Commit 2a2a55b

Browse files
alanbchristieAlan Christie
andauthored
Add pipeline tester (#37)
* - Experiment with travis-based pipeline testing * - Experiment with specific JDK version * - Back to 'os: linux' * - Testing now only takes place on master Co-authored-by: Alan Christie <[email protected]>
1 parent f2eb2cf commit 2a2a55b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ stages:
2020
if: |
2121
branch = master \
2222
AND env(PUBLISH_IMAGES) = yes
23+
- name: test latest
24+
if: |
25+
branch = master \
26+
AND env(PUBLISH_IMAGES) = yes
2327
- name: publish tag
2428
if: |
2529
tag IS present \
@@ -43,14 +47,25 @@ jobs:
4347
# and also result in a 'stable' image tag.
4448

4549
- stage: publish latest
46-
name: Test and Latest Image
50+
name: Latest Image
4751
script:
4852
# Build and push the pipelines-rdkit image and its sd-poster
4953
- docker build -t informaticsmatters/rdkit_pipelines:latest -f Dockerfile-rdkit .
5054
- docker push informaticsmatters/rdkit_pipelines:latest
5155
- docker build -t squonk/rdkit-pipelines-sdposter:latest -f Dockerfile-sdposter .
5256
- docker push squonk/rdkit-pipelines-sdposter:latest
5357

58+
- stage: test latest
59+
name: Test Latest Image
60+
script:
61+
# Pull the latest pipelines-rdkit image
62+
# then clone the utils rep (containing the test engine)
63+
# and then run the tests
64+
- docker pull informaticsmatters/rdkit_pipelines:latest
65+
- git clone https://github.com/InformaticsMatters/pipelines-utils.git
66+
- cd pipelines-utils/src/groovy
67+
- groovy PipelineTester.groovy -indocker
68+
5469
- stage: publish tag
5570
name: Tagged Image
5671
script:

0 commit comments

Comments
 (0)