aboutsummaryrefslogblamecommitdiffhomepage
path: root/circle.yml
blob: 1b4821559bd7dd603b0eeb6950b8f10dd92f59d6 (plain) (tree)
1
2
3
4
5
6
7
8
9








                    





                                                           
                                                       
 
                                                                   
                                                                   
                                                               
                                                               
                                                               
                                                               
                                                               
 



                                                                         
                                                                      





                                                                                 
                                                                              

                                                                             

           





                                                                 
                                                             





                                                                         
                                                                     
 



                                                                               
                                                                            




                                                                                       
                                                                                    


                                                                                   
                                               





                                               
                                               





                                               
                                               




                                                      
                                                       




                                                      
                                                       
                                                      
machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version

    - docker build  -t ansible_trusty           ubuntu14.04
    - docker build  -t ansible_precise          ubuntu12.04
    - docker build  -t ansible_jessie           debian8
    - docker build  -t ansible_wheezy           debian7
    - docker build  -t ansible_centos7          centos7
    - docker build  -t ansible_centos6          centos6
    - docker build  -t ansible_alpine3          alpine3

    - docker build  -t ansible_trusty_onbuild   ubuntu14.04-onbuild
    - docker build  -t ansible_precise_onbuild  ubuntu12.04-onbuild
    - docker build  -t ansible_jessie_onbuild   debian8-onbuild
    - docker build  -t ansible_wheezy_onbuild   debian7-onbuild
    - docker build  -t ansible_centos7_onbuild  centos7-onbuild
    - docker build  -t ansible_centos6_onbuild  centos6-onbuild
    - docker build  -t ansible_alpine3_onbuild  alpine3-onbuild

    - docker build  -t ansible_master_trusty           master-ubuntu14.04
    - docker build  -t ansible_master_precise          master-ubuntu12.04
    - docker build  -t ansible_master_jessie           master-debian8
    - docker build  -t ansible_master_wheezy           master-debian7
    #- docker build  -t ansible_master_centos7          master-centos7
    - docker build  -t ansible_master_centos6          master-centos6

    - docker build  -t ansible_master_trusty_onbuild   master-ubuntu14.04-onbuild
    - docker build  -t ansible_master_precise_onbuild  master-ubuntu12.04-onbuild
    - docker build  -t ansible_master_jessie_onbuild   master-debian8-onbuild
    - docker build  -t ansible_master_wheezy_onbuild   master-debian7-onbuild
    #- docker build  -t ansible_master_centos7_onbuild  master-centos7-onbuild
    - docker build  -t ansible_master_centos6_onbuild  master-centos6-onbuild

test:
  override:
    - docker run -i ansible_trusty           > result-ubuntu14.04
    - docker run -i ansible_precise          > result-ubuntu12.04
    - docker run -i ansible_jessie           > result-debian8
    - docker run -i ansible_wheezy           > result-debian7
    - docker run -i ansible_centos7          > result-centos7
    - docker run -i ansible_centos6          > result-centos6
    - docker run -i ansible_alpine3          > result-alpine3
    - docker run -i ansible_trusty_onbuild   > result-ubuntu14.04-onbuild
    - docker run -i ansible_precise_onbuild  > result-ubuntu12.04-onbuild
    - docker run -i ansible_jessie_onbuild   > result-debian8-onbuild
    - docker run -i ansible_wheezy_onbuild   > result-debian7-onbuild
    - docker run -i ansible_centos7_onbuild  > result-centos7-onbuild
    - docker run -i ansible_centos6_onbuild  > result-centos6-onbuild
    - docker run -i ansible_alpine3_onbuild  > result-alpine3-onbuild

    - docker run -i ansible_master_trusty           > result-master-ubuntu14.04
    - docker run -i ansible_master_precise          > result-master-ubuntu12.04
    - docker run -i ansible_master_jessie           > result-master-debian8
    - docker run -i ansible_master_wheezy           > result-master-debian7
    #- docker run -i ansible_master_centos7          > result-master-centos7
    - docker run -i ansible_master_centos6          > result-master-centos6
    - docker run -i ansible_master_trusty_onbuild   > result-master-ubuntu14.04-onbuild
    - docker run -i ansible_master_precise_onbuild  > result-master-ubuntu12.04-onbuild
    - docker run -i ansible_master_jessie_onbuild   > result-master-debian8-onbuild
    - docker run -i ansible_master_wheezy_onbuild   > result-master-debian7-onbuild
    #- docker run -i ansible_master_centos7_onbuild  > result-master-centos7-onbuild
    - docker run -i ansible_master_centos6_onbuild  > result-master-centos6-onbuild


    - echo "==> Validating the test results..."
    - sh -c "[ -s result-ubuntu14.04         ]"
    - sh -c "[ -s result-ubuntu12.04         ]"
    - sh -c "[ -s result-debian8             ]"
    - sh -c "[ -s result-debian7             ]"
    - sh -c "[ -s result-centos7             ]"
    - sh -c "[ -s result-centos6             ]"
    - sh -c "[ -s result-alpine3             ]"
    - sh -c "[ -s result-ubuntu14.04-onbuild ]"
    - sh -c "[ -s result-ubuntu12.04-onbuild ]"
    - sh -c "[ -s result-debian8-onbuild     ]"
    - sh -c "[ -s result-debian7-onbuild     ]"
    - sh -c "[ -s result-centos7-onbuild     ]"
    - sh -c "[ -s result-centos6-onbuild     ]"
    - sh -c "[ -s result-alpine3-onbuild     ]"

    - sh -c "[ -s result-master-ubuntu14.04         ]"
    - sh -c "[ -s result-master-ubuntu12.04         ]"
    - sh -c "[ -s result-master-debian8             ]"
    - sh -c "[ -s result-master-debian7             ]"
    #- sh -c "[ -s result-master-centos7             ]"
    - sh -c "[ -s result-master-centos6             ]"
    - sh -c "[ -s result-master-ubuntu14.04-onbuild ]"
    - sh -c "[ -s result-master-ubuntu12.04-onbuild ]"
    - sh -c "[ -s result-master-debian8-onbuild     ]"
    - sh -c "[ -s result-master-debian7-onbuild     ]"
    #- sh -c "[ -s result-master-centos7-onbuild     ]"
    - sh -c "[ -s result-master-centos6-onbuild     ]"