File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,11 @@ script:
18
18
19
19
env :
20
20
- DOCKER_IMAGE=pathman/pg95_clang_check_code
21
+ - DOCKER_IMAGE=pathman/pg95_cppcheck
22
+ - DOCKER_IMAGE=pathman/pg95_pathman_tests
23
+ - DOCKER_IMAGE=pathman/pg96_clang_check_code
24
+ - DOCKER_IMAGE=pathman/pg96_cppcheck
25
+ - DOCKER_IMAGE=pathman/pg96_pathman_tests
26
+ - DOCKER_IMAGE=pathman/pg10_clang_check_code
27
+ - DOCKER_IMAGE=pathman/pg10_cppcheck
28
+ - DOCKER_IMAGE=pathman/pg10_pathman_tests
Original file line number Diff line number Diff line change 17
17
}
18
18
}
19
19
20
- stopline = '###STOP'
21
-
22
- password = input ("Enter password for `docker login`: " )
20
+ password = input ("Enter password for `docker login` for user `%s`: " % DOCKER_ID )
23
21
subprocess .check_output ([
24
22
'docker' ,
25
23
'login' ,
26
24
'-u' , DOCKER_ID ,
27
25
'-p' , password ])
28
26
27
+ travis_conf_line = '- DOCKER_IMAGE=%s'
28
+ travis_conf = []
29
+
29
30
for pg_version in pg_versions :
30
31
pgname = 'pg%s' % pg_version .replace ('.' , '' )
31
32
for key , variables in image_types .items ():
32
33
image_name = '%s/%s_%s' % (DOCKER_ID , pgname , key )
33
34
with open ('Dockerfile' , 'w' ) as out :
34
35
with open ('Dockerfile.tmpl' , 'r' ) as f :
35
36
for line in f :
36
- if line .startswith (stopline ):
37
- break
38
-
39
- line = line
40
37
line = line .replace ('${PG_VERSION}' , pg_version )
41
38
for key , value in variables .items ():
42
39
varname = '${%s}' % key
55
52
subprocess .check_output (['docker' , 'push' , image_name ],
56
53
stderr = subprocess .STDOUT )
57
54
print ("upload ok:" , image_name )
58
- exit ()
55
+ travis_conf .append (travis_conf_line % image_name )
56
+
57
+ print ('\n ' .join (travis_conf ))
You can’t perform that action at this time.
0 commit comments