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


           


              






                              




                     
 




                                 




                     


            




                           




                     
 




                               




                     


            




                            




                     
 




                                




                     





                                 




                     





                                  




                     





                              




                     



                 
                                                                                                              
                        




                     
 


                 
                                                                                                              
                               




                     


            




                               




                     
 










                                      






                                          




                     







                                          




                     







                                 




                     

            





                                 




                     







                                 




                     

            





                                 




                     







                                      




                     

            
 
                      



                                      




                     







                               




                     





                               




                     


            

               




                                     




                     


            




                            




                     

            
 




                            




                     
 




                                     




                     


            




                            




                     

            
 




                                     




                     


            




                            




                     
 




                                  




                     


            




                             




                     

            
 




                                     




                     


            




                              




                     
 




                                  




                     


            




                              




                     
 




                                  




                     


            
                 



                                       




                     
 




                                       




                     


            




                                  




                     





                            




                     
 




                               




                     


            




                                  




                     





                                  




                     

            
 
      

              
                           
                        




                     
 
            


                                 
                        




                     
 




                                




                     





                                      




                     
 




                                      




                     


            




                                  




                     
 




                                  




                     


            




                                       




                     
 




                                       




                     


            




                                    




                     
 




                                    




                     
 




                                    




                     


            


              
                                                           
                        




                     
 




                                            




                     





                                              




                     



                   
                                                        
                        




                     



                        
                                                             
                        




                     
 


                 
                                                                
                        




                     
 


              
                                                                             
                        




                     
 


                  
                                                                 
                        




                     
 


                       
                                                                      
                        




                     





                                   




                     
 
                 



                                             




                     
 
                 
 
                     
              
         
                                                                                    
                        




                     
 
                 
              
         
                                                                                                                    
                        




                     

              
              


                                   




                     
 

                  


                         
                                                                        

                                                               
                                    



                                                                                         




                     



                              
                                                                                   

                                                                
                                    



                                                                                         




                     



                                       
                                                           

                                                               
                                    



                                                                                         




                     



                                            
                                                                      

                                                                
                                    



                                                                                         




                     



                         
                                                                        

                                                               
                                    



                                                                                         




                     



                              
                                                                                   

                                                                
                                    



                                                                                         




                     



                                       
                                                           

                                                               
                                    



                                                                                         




                     



                                            
                                                                      

                                                                
                                    



                                                                                         




                     



                        
                                                                        

                                                               
                                    



                                                                                        




                     



                             
                                                                                   

                                                                
                                    



                                                                                        




                     



                                      
                                                           

                                                               
                                    



                                                                                        




                     



                                           
                                                                      

                                                                
                                    



                                                                                        




                     
 


                     
                                                                        

                                                               
                                    



                                                                                     




                     



                   
                                                                        

                                                               
                                    



                                                                                   




                     



                   
                                                                        

                                                               
                                    



                                                                                   




                     



                 
                                                                        

                                                               
                                    



                                                                                 




                     



                 
                                                                        

                                                               
                                    



                                                                                 




                     



                     
                                                                                 

                                                               
                                    



                                                                                     




                     



                   
                                                                                 

                                                               
                                    



                                                                                   




                     



                 
                                                                        

                                                               
                                    



                                                                                 




                     



                  
                                                                        

                                                               
                                    



                                                                                  




                     



                       
                                                                        

                                                               
                                    



                                                                                       




                     



                     
                                                                        

                                                               
                                    



                                                                                     




                     
 


                      
                                                                        

                                                               
                                    



                                                                                      




                     



                        
                                                                        

                                                               
                                    



                                                                                        




                     



                      
                                                                        

                                                               
                                    



                                                                                      




                     



                          
                                                                        

                                                               
                                    



                                                                                          




                     



                        
                                                                        

                                                               
                                    



                                                                                        




                     
 


                       
                                                                        

                                                               
                                    



                                                                                       




                     
 


                       
                                                                        

                                                               
                                    



                                                                                       




                     



                 
                                                                        

                                                               
                                    



                                                                                                         




                     



               
                                                                        

                                                               
                                    



                                                                                                       




                     



                   
                                                                        

                                                               
                                    



                                                                                   




                     



                 
                                                                        

                                                               
                                    



                                                                                 




                     



                       
                                                                        

                                                               
                                    



                                                                                       




                     



                     
                                                                        

                                                               
                                    



                                                                                     




                     



                    
                                                                        

                                                               
                                    



                                                                                    




                     



                  
                                                                        

                                                               
                                    



                                                                                  




                     



                         
                                                                        

                                                               
                                    



                                                                                         




                     



                       
                                                                        

                                                               
                                    



                                                                                       




                     



                      
                                                                        

                                                               
                                    



                                                                                      




                     



                    
                                                                        

                                                               
                                    



                                                                                    




                     



                 
                                                                        

                                                               
                                    



                                                                                                         




                     



               
                                                                        

                                                               
                                    



                                                                                                       




                     



                      
                                                                        

                                                               
                                    



                                                                                      




                     



                    
                                                                        

                                                               
                                    



                                                                                    




                     



                    
                                                                        

                                                               
                                    



                                                                                    




                     



                  
                                                                        

                                                               
                                    



                                                                                  




                     



                          
                                                                        

                                                               
                                    



                                                                                          




                     



                        
                                                                        

                                                               
                                    



                                                                                        




                     



                           
                                                                        

                                                               
                                    



                                                                                           




                     



                         
                                                                        

                                                               
                                    



                                                                                         




                     



                       
                                                                        

                                                               
                                    



                                                                                                                                                      




                     



                     
                                                                        

                                                               
                                    



                                                                                                                                                    




                     



                  
                                                                        

                                                               
                                    



                                                                                  




                     



                
                                                                        

                                                               
                                    



                                                                                




                     



                   
                                                                        

                                                               
                                    



                                                                                   




                     



                 
                                                                        

                                                               
                                    



                                                                                 




                     



              
                                                                        

                                                               
                                    



                                                                                                 




                     



              
                                                                        

                                                               
                                    



                                                                                               




                     



              
                                                                                    

                                                               
                                    



                                                                            




                     





                          
                                                                                   

                                                                
                                    



                                                                                     




                     



                        
                                                                                   

                                                                
                                    



                                                                                   




                     



                        
                                                                                   

                                                                
                                    



                                                                                   




                     



                      
                                                                                   

                                                                
                                    



                                                                                 




                     



                      
                                                                                   

                                                                
                                    



                                                                                 




                     



                          
                                                                                            

                                                                
                                    



                                                                                     




                     



                        
                                                                                            

                                                                
                                    



                                                                                   




                     



                      
                                                                                   

                                                                
                                    



                                                                                 




                     



                       
                                                                                   

                                                                
                                    



                                                                                  




                     



                            
                                                                                   

                                                                
                                    



                                                                                       




                     



                          
                                                                                   

                                                                
                                    



                                                                                     




                     
 


                           
                                                                                   

                                                                
                                    



                                                                                      




                     



                             
                                                                                   

                                                                
                                    



                                                                                        




                     



                           
                                                                                   

                                                                
                                    



                                                                                      




                     



                               
                                                                                   

                                                                
                                    



                                                                                          




                     



                             
                                                                                   

                                                                
                                    



                                                                                        




                     
 


                            
                                                                                   

                                                                
                                    



                                                                                       




                     
 


                            
                                                                                   

                                                                
                                    



                                                                                       




                     



                      
                                                                                   

                                                                
                                    



                                                                                                         




                     



                    
                                                                                   

                                                                
                                    



                                                                                                       




                     



                        
                                                                                   

                                                                
                                    



                                                                                   




                     



                      
                                                                                   

                                                                
                                    



                                                                                 




                     



                            
                                                                                   

                                                                
                                    



                                                                                       




                     



                          
                                                                                   

                                                                
                                    



                                                                                     




                     



                         
                                                                                   

                                                                
                                    



                                                                                    




                     



                       
                                                                                   

                                                                
                                    



                                                                                  




                     



                              
                                                                                   

                                                                
                                    



                                                                                         




                     



                            
                                                                                   

                                                                
                                    



                                                                                       




                     



                           
                                                                                   

                                                                
                                    



                                                                                      




                     



                         
                                                                                   

                                                                
                                    



                                                                                    




                     



                      
                                                                                   

                                                                
                                    



                                                                                                         




                     



                    
                                                                                   

                                                                
                                    



                                                                                                       




                     



                           
                                                                                   

                                                                
                                    



                                                                                      




                     



                         
                                                                                   

                                                                
                                    



                                                                                    




                     



                         
                                                                                   

                                                                
                                    



                                                                                    




                     



                       
                                                                                   

                                                                
                                    



                                                                                  




                     



                               
                                                                                   

                                                                
                                    



                                                                                          




                     



                             
                                                                                   

                                                                
                                    



                                                                                        




                     



                                
                                                                                   

                                                                
                                    



                                                                                           




                     



                              
                                                                                   

                                                                
                                    



                                                                                         




                     



                            
                                                                                   

                                                                
                                    



                                                                                                                                                      




                     



                          
                                                                                   

                                                                
                                    



                                                                                                                                                    




                     



                       
                                                                                   

                                                                
                                    



                                                                                  




                     



                     
                                                                                   

                                                                
                                    



                                                                                




                     



                        
                                                                                   

                                                                
                                    



                                                                                   




                     



                      
                                                                                   

                                                                
                                    



                                                                                 




                     



                  
                                                                                   

                                                                
                                    



                                                                                                 




                     



                
                                                                                   

                                                                
                                    



                                                                                               




                     



                 
                                                                                               

                                                                
                                    



                                                                            




                     
 




                                   
                                                           

                                                               
                                    



                                                                                     




                     



                                 
                                                           

                                                               
                                    



                                                                                   




                     



                                 
                                                           

                                                               
                                    



                                                                                   




                     



                               
                                                           

                                                               
                                    



                                                                                 




                     



                               
                                                           

                                                               
                                    



                                                                                 




                     



                                   
                                                                    

                                                               
                                    



                                                                                     




                     



                                 
                                                                    

                                                               
                                    



                                                                                   




                     



                               
                                                           

                                                               
                                    



                                                                                 




                     



                                
                                                           

                                                               
                                    



                                                                                  




                     



                                     
                                                           

                                                               
                                    



                                                                                       




                     



                                   
                                                           

                                                               
                                    



                                                                                     




                     
 


                                    
                                                           

                                                               
                                    



                                                                                      




                     



                                      
                                                           

                                                               
                                    



                                                                                        




                     



                                    
                                                           

                                                               
                                    



                                                                                      




                     



                                        
                                                           

                                                               
                                    



                                                                                          




                     



                                      
                                                           

                                                               
                                    



                                                                                        




                     
 


                                     
                                                           

                                                               
                                    



                                                                                       




                     
 


                                     
                                                           

                                                               
                                    



                                                                                       




                     



                               
                                                           

                                                               
                                    



                                                                                                         




                     



                             
                                                           

                                                               
                                    



                                                                                                       




                     



                                 
                                                           

                                                               
                                    



                                                                                   




                     



                               
                                                           

                                                               
                                    



                                                                                 




                     



                                     
                                                           

                                                               
                                    



                                                                                       




                     



                                   
                                                           

                                                               
                                    



                                                                                     




                     



                                  
                                                           

                                                               
                                    



                                                                                    




                     



                                
                                                           

                                                               
                                    



                                                                                  




                     



                                       
                                                           

                                                               
                                    



                                                                                         




                     



                                     
                                                           

                                                               
                                    



                                                                                       




                     



                                    
                                                           

                                                               
                                    



                                                                                      




                     



                                  
                                                           

                                                               
                                    



                                                                                    




                     



                               
                                                           

                                                               
                                    



                                                                                                         




                     



                             
                                                           

                                                               
                                    



                                                                                                       




                     



                                    
                                                           

                                                               
                                    



                                                                                      




                     



                                  
                                                           

                                                               
                                    



                                                                                    




                     



                                  
                                                           

                                                               
                                    



                                                                                    




                     



                                
                                                           

                                                               
                                    



                                                                                  




                     



                                        
                                                           

                                                               
                                    



                                                                                          




                     



                                      
                                                           

                                                               
                                    



                                                                                        




                     



                                         
                                                           

                                                               
                                    



                                                                                           




                     



                                       
                                                           

                                                               
                                    



                                                                                         




                     



                                     
                                                           

                                                               
                                    



                                                                                                                                                      




                     



                                   
                                                           

                                                               
                                    



                                                                                                                                                    




                     



                                
                                                           

                                                               
                                    



                                                                                  




                     



                              
                                                           

                                                               
                                    



                                                                                




                     



                                 
                                                           

                                                               
                                    



                                                                                   




                     



                               
                                                           

                                                               
                                    



                                                                                 




                     



                           
                                                           

                                                               
                                    



                                                                                                 




                     



                         
                                                           

                                                               
                                    



                                                                                               




                     
 
                          

              
                                                                       

                                                               
                                    



                                                                            




                     





                                        
                                                                      

                                                                
                                    



                                                                                     




                     



                                      
                                                                      

                                                                
                                    



                                                                                   




                     



                                      
                                                                      

                                                                
                                    



                                                                                   




                     



                                    
                                                                      

                                                                
                                    



                                                                                 




                     



                                    
                                                                      

                                                                
                                    



                                                                                 




                     



                                        
                                                                               

                                                                
                                    



                                                                                     




                     



                                      
                                                                               

                                                                
                                    



                                                                                   




                     



                                    
                                                                      

                                                                
                                    



                                                                                 




                     



                                     
                                                                      

                                                                
                                    



                                                                                  




                     



                                          
                                                                      

                                                                
                                    



                                                                                       




                     



                                        
                                                                      

                                                                
                                    



                                                                                     




                     
 


                                         
                                                                      

                                                                
                                    



                                                                                      




                     



                                           
                                                                      

                                                                
                                    



                                                                                        




                     



                                         
                                                                      

                                                                
                                    



                                                                                      




                     



                                             
                                                                      

                                                                
                                    



                                                                                          




                     



                                           
                                                                      

                                                                
                                    



                                                                                        




                     
 


                                          
                                                                      

                                                                
                                    

                                                                                       

                                




                     



                                          
                                                                      

                                                                
                                    



                                                                                       




                     



                                    
                                                                      

                                                                
                                    



                                                                                                         




                     



                                  
                                                                      

                                                                
                                    



                                                                                                       




                     



                                      
                                                                      

                                                                
                                    



                                                                                   




                     



                                    
                                                                      

                                                                
                                    



                                                                                 




                     



                                          
                                                                      

                                                                
                                    



                                                                                       




                     



                                        
                                                                      

                                                                
                                    



                                                                                     




                     



                                       
                                                                      

                                                                
                                    



                                                                                    




                     



                                     
                                                                      

                                                                
                                    



                                                                                  




                     



                                            
                                                                      

                                                                
                                    



                                                                                         




                     



                                          
                                                                      

                                                                
                                    



                                                                                       




                     



                                         
                                                                      

                                                                
                                    



                                                                                      




                     



                                       
                                                                      

                                                                
                                    



                                                                                    




                     



                                    
                                                                      

                                                                
                                    



                                                                                                         




                     



                                  
                                                                      

                                                                
                                    



                                                                                                       




                     



                                         
                                                                      

                                                                
                                    



                                                                                      




                     



                                       
                                                                      

                                                                
                                    



                                                                                    




                     



                                       
                                                                      

                                                                
                                    



                                                                                    




                     



                                     
                                                                      

                                                                
                                    



                                                                                  




                     



                                             
                                                                      

                                                                
                                    



                                                                                          




                     



                                           
                                                                      

                                                                
                                    



                                                                                        




                     



                                              
                                                                      

                                                                
                                    



                                                                                           




                     



                                            
                                                                      

                                                                
                                    



                                                                                         




                     



                                          
                                                                      

                                                                
                                    



                                                                                                                                                      




                     



                                        
                                                                      

                                                                
                                    



                                                                                                                                                    




                     



                                     
                                                                      

                                                                
                                    



                                                                                  




                     



                                   
                                                                      

                                                                
                                    



                                                                                




                     



                                      
                                                                      

                                                                
                                    



                                                                                   




                     



                                    
                                                                      

                                                                
                                    



                                                                                 




                     



                                
                                                                      

                                                                
                                    



                                                                                                 




                     



                              
                                                                      

                                                                
                                    



                                                                                               




                     
 
                               

              
                                                                                  

                                                                
                                    



                                                                            




                     
 



                

                  




                        

                  

                        




                     
stages:
  - prebuild
  - build
  - success
  - failure

before_script:
  - uname -a

# pre build

clang-3.9:
  stage: prebuild
  script:
  - ./tools/ci/jobs/clang39.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_c++11_i386:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc5_c++11.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-6:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-6-i386:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.4:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc44.sh
  image: debian:oldstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

mplint_po:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh po
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

mplint_src:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh src
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

mplint_data:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh data
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

cpplint:
  stage: prebuild
  script:
  - ./tools/ci/jobs/cpplint.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_h_all:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc5_h.sh -std=c++0x -DDEBUGBUILD -DTMWA_SUPPORT -DENABLE_NLS -DUSE_OPENGL -DENABLE_LIBXML
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_h_all_i386:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc5_h.sh -std=c++0x -DDEBUGBUILD -DTMWA_SUPPORT -DENABLE_NLS -DUSE_OPENGL -DENABLE_LIBXML
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

pngcheck:
  stage: prebuild
  script:
  - ./tools/ci/jobs/pngcheck.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

icccheck:
  stage: prebuild
  script:
  - ./tools/ci/jobs/imagemagiccheck.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# tests

gcc-5_sanitize_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_sanitize_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tests.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tests.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-6_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-6_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_sdl2_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_sdl2_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-6_lto:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_lto.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-6_lto_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_lto.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

# simple builds

gcc-4.4_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc44.sh
  image: vicamo/debian:oldstable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.5:
  stage: build
  script:
  - ./tools/ci/jobs/gcc45.sh
  image: ubuntu:12.04
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.6:
  stage: build
  script:
  - ./tools/ci/jobs/gcc46.sh
  image: debian:oldstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-4.6_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc46.sh
  image: vicamo/debian:oldstable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.7:
  stage: build
  script:
  - ./tools/ci/jobs/gcc47.sh
  image: debian:oldstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.7_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc47.sh
  image: vicamo/debian:oldstable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.8:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48.sh
  image: debian:stable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-4.8_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48.sh
  image: vicamo/debian:stable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

clang-3.0:
  stage: build
  script:
  - ./tools/ci/jobs/clang3.sh
  image: debian:oldstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

clang-3.0_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang3.sh
  image: vicamo/debian:oldstable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

clang-3.4:
  stage: build
  script:
  - ./tools/ci/jobs/clang34.sh
  image: debian:stable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

clang-3.4_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang34.sh
  image: vicamo/debian:stable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

clang-3.5:
  stage: build
  script:
  - ./tools/ci/jobs/clang35.sh
  image: debian:stable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

clang-3.5_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang35.sh
  image: vicamo/debian:stable-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

.clang-3.9_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/clang39.sh_c++11.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

.clang-3.9_c++11_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang39.sh_c++11.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.8_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48_c++11.sh
  image: debian:stable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-4.9:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-4.9_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-4.9_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49_c++11.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

cmake_gcc-4.9:
  stage: build
  script:
  - ./tools/ci/jobs/cmake_gcc49.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_c++11.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_sdl2_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_c++11.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_sdl2_c++11_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_c++11.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-snapshot:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-snapshot_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-snapshot_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sdl2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-snapshot_sdl2_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sdl2.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc-5_sanitize:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-6_sanitize:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-6_sanitize_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh
  image: vicamo/debian:sid-i386
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week
  tags:
    - docker

gcc_eathena:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --without-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_without_opengl:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --without-opengl
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_cilkplus:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh --enable-cilkplus
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_eathena_opengl:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --with-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_eathena_opengl_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2.sh --with-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_eathena_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2.sh --without-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_portable:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --with-opengl --enable-tmwa --enable-portable=yes
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_eathena_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_c++11.sh --without-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc_eathena_sdl2_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_c++11.sh --without-opengl --disable-tmwa
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

clang-3.9_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/clang39_sdl2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-6_no_asserts:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --disable-asserts
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# different tools

gcc-5_h_eathena_tmwa:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_h.sh -std=c++0x -DDEBUGBUILD -DTMWA_SUPPORT -DENABLE_LIBXML
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_h_pugi_all:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_h_pugi.sh -std=c++0x -DDEBUGBUILD -DTMWA_SUPPORT -DENABLE_NLS -DUSE_OPENGL -DENABLE_PUGIXML
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

gcc-5_tarball:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tarball.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# deheader default

deheader_gui_windows_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_windows_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_windows_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_windows_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_widgets_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_widgets_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_widgets_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_widgets_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_models_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_models_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_models_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_models_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_actions_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_actions_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_being_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_being_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_const_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_dyetool_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_dyetool_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_enums_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_events_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_fonts_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_fonts_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_models_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_popups_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_popups_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_shortcut_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_shortcut_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_widgets_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_windows_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui -type f -name "*.cpp" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui -type f -name "*.h" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_input_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_input_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_listeners_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_listeners_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_ea_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_ea_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_eathena_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_eathena_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_tmwa_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_tmwa_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net -type f -name "*.cpp" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net -type f -name "*.h" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_particle_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_particle_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_render_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_render_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_db_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_db_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_map_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_map_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources -type f -name "*.cpp" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources -type f -name "*.h" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_test_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_test_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_utils_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_utils_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# deheader sdl2

deheader_sdl2_actions_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_actions_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_being_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_being_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_const_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_dyetool_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_dyetool_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_enums_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_events_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_fonts_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_fonts_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_models_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_popups_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_popups_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_shortcut_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_shortcut_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_widgets_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_windows_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui -type f -name "*.cpp" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui -type f -name "*.h" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_input_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_input_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_listeners_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_listeners_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_ea_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_ea_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_eathena_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_eathena_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_tmwa_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_tmwa_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net -type f -name "*.cpp" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net -type f -name "*.h" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_particle_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_particle_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_render_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_render_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_db_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_db_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_map_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_map_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources -type f -name "*.cpp" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources -type f -name "*.h" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_test_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_test_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_utils_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_utils_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# dehedeart without opengl

deheader_actions_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_actions_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_being_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_being_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_const_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_dyetool_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_dyetool_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_enums_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_events_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_fonts_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_fonts_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_models_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_popups_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_popups_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_shortcut_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_shortcut_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_widgets_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_windows_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui -type f -name "*.cpp" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_gui_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui -type f -name "*.h" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_input_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_input_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_listeners_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_listeners_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_ea_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_ea_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_eathena_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_eathena_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_tmwa_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_tmwa_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net -type f -name "*.cpp" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_net_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net -type f -name "*.h" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_particle_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_particle_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_render_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_render_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_db_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_db_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_map_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_map_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources -type f -name "*.cpp" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_resources_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources -type f -name "*.h" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_test_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_test_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_utils_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_utils_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_withoutopengl_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - export INCLUDES="-I/usr/include/SDL -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# deheader sdl2

deheader_sdl2_actions_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_actions_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_being_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_being_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_const_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_dyetool_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_dyetool_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_enums_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_events_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_fonts_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_fonts_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_models_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_popups_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_popups_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_shortcut_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_shortcut_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_widgets_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_windows_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui -type f -name "*.cpp" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_gui_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/gui -type f -name "*.h" ! -path "./src/gui/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_input_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_input_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_listeners_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_listeners_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_ea_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_ea_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_eathena_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_eathena_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_tmwa_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_tmwa_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net -type f -name "*.cpp" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_net_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/net -type f -name "*.h" ! -path "./src/net/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_particle_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_particle_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_render_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_render_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_db_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_db_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_map_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_map_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources -type f -name "*.cpp" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_resources_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/resources -type f -name "*.h" ! -path "./src/resources/db/*" ! -path "./src/resources/map/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_test_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_test_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_utils_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_utils_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

deheader_sdl2_withoutopengl_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - export INCLUDES="-I/usr/include/SDL2 -I/usr/include/libxml2"
  - export CXX=g++-5
  - export LOGFILE=logs/deheader.log
  - ./tools/ci/jobs/deheader_sdl2.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  image: debian:unstable
  artifacts:
    paths:
    - logs
    when: on_failure
    expire_in: 3 week

# reports

success:
  stage: success
  script:
  - echo "nothing"
  image: debian:unstable
  when: on_success

failure:
  stage: failure
  script:
  - echo "nothing"
  image: debian:unstable
  when: on_failure
  artifacts:
    paths:
    - logs
    when: always
    expire_in: 3 week