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








                    

                                                   
 

                                                   
 

                                               
 

                                               
 

                                               
 

                                               
 

                                                                   
 

                                                                   
 

                                                               
 

                                                               
 

                                                               
 

                                                               


           





                                                                 







                                                                         





                                               





                                               
machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version

    - cp ubuntu14.04/Dockerfile Dockerfile
    - docker build  -t ansible_trusty   ubuntu14.04

    - cp ubuntu12.04/Dockerfile Dockerfile
    - docker build  -t ansible_precise  ubuntu12.04

    - cp debian8/Dockerfile     Dockerfile
    - docker build  -t ansible_jessie   debian8

    - cp debian7/Dockerfile     Dockerfile
    - docker build  -t ansible_wheezy   debian7

    - cp centos7/Dockerfile     Dockerfile
    - docker build  -t ansible_centos7  centos7

    - cp centos6/Dockerfile     Dockerfile
    - docker build  -t ansible_centos6  centos6

    - cp ubuntu14.04-onbuild/Dockerfile  Dockerfile
    - docker build  -t ansible_trusty_onbuild   ubuntu14.04-onbuild

    - cp ubuntu12.04-onbuild/Dockerfile  Dockerfile
    - docker build  -t ansible_precise_onbuild  ubuntu12.04-onbuild

    - cp debian8-onbuild/Dockerfile      Dockerfile
    - docker build  -t ansible_jessie_onbuild   debian8-onbuild

    - cp debian7-onbuild/Dockerfile      Dockerfile
    - docker build  -t ansible_wheezy_onbuild   debian7-onbuild

    - cp centos7-onbuild/Dockerfile      Dockerfile
    - docker build  -t ansible_centos7_onbuild  centos7-onbuild

    - cp centos6-onbuild/Dockerfile      Dockerfile
    - docker build  -t ansible_centos6_onbuild  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_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

    - 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-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     ]"