summaryrefslogblamecommitdiff
path: root/.gitlab-ci.yml
blob: 3d5cbd0ed9f9835c819062f7e4cea5bed7a57c0f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




        

                    



                  
                                                                                                                                 

                
                                                          
       
                                   

                        

            
            






            

             
                  
                                                   

                
                                                          

                        
                                      
                  
            
          
            

               





             

                           
              
                  
                                                   

                
                                                          
                        
                                   
                  


             

               

          
stages:
- deploy
- fail
- ok

image: debian:stable

pages:
  stage: deploy
  script:
  - apt-get update
  - apt-get -y -qq install git-core zip gcc zlib1g-dev ca-certificates libxml2-utils python python-pyvorbis python-ogg python-pil
  - cd ..
  - rm -rf tools
  - git clone https://gitlab.com/evol/evol-tools.git tools
  - pwd
  - ./tools/gitlab-ci/clientdata.sh
  - pwd
  - ls clientdata/shared
  artifacts:
    paths:
    - shared
    - public
  only:
  - master
 
ok_job:
  stage: ok
  script:
  - pwd
  - ls shared
  - apt-get update
  - apt-get -y -qq install ii psmisc pastebinit git
  - cd ..
  - rm -rf tools
  - git clone https://gitlab.com/evol/evol-tools.git tools
  - pwd
  - ls clientdata/shared
  - ./tools/gitlab-ci/susseccaction.sh
  when: on_success
  artifacts:
    paths:
    - shared
  dependencies:
  - pages
  only:
  - master

fail_job:
  stage: fail
  script:
  - pwd
  - echo $CI_BUILD_REF_NAME
#  - ls shared
  - apt-get update
  - apt-get -y -qq install ii psmisc pastebinit git
  - cd ..
  - rm -rf tools
  - git clone https://gitlab.com/evol/evol-tools.git tools
  - ls clientdata/shared
  - ./tools/gitlab-ci/failaction.sh
  when: on_failure
#  artifacts:
#    paths:
#    - shared
  dependencies:
  - pages
  only:
  - master