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

              

                       
                      
                  

                                                                           
 
                      


                                 


                                                
 
                        


            
                
                     
                  
 






                                                         









                                                                                                           


                                                                                                 

           
                 

                 

                                 
                 
            
                          
                                                       

                                                                                                           

            
 
           

                 
                           
                               
                 
            
                          
                                                       

                                                                                                           


            
          

                 
                              
                 
            
                                                 
                                                       

                                                                                                           
 
      


                           
                 

                          
                                                       

                                                                                                           
 
             

                 
                                         


                          
                            



                                                                                                           




                            
                 

                              
                                                       

                                                                                                           

            
 



                                
                 

                          
                                                       

                                                                                                 
 


                 
                                            


                          
                                                       


                                                                                                           
                  





                                                  
                                                       


                                                                                                           



                                
                 


                                                      




                                 
                 


                                                      




                                  
                 


                                                      




                              
                 

                         



                 
                                                                                                              
                 

                          
                                                       

                                                                                                           
 


                 
                                                                                                              
                               
                 

                          
                                                       

                                                                                                           


            



                               
                 

                      
 



                                      
                 

                         
 

       










                                                                                                                                                              
                                            























                                                                                                                                                                          
                                            














                                                                                                          



                                          
                                            
                 

                          
                                                       


                                                                                                            


            


                 
                                                                              
                 

                          
                                                       


                                                                                                            


            


                          
                                                                                  
                                            
                               
                 

                          
                                                       


                                                                                                            


            


                               
                                                                                                   
                                            
                 

                          
                                                       


                                                                                                            





                                   
                                                                                                   
                                            
                               
                 

                          
                                                       


                                                                                                            


            


              
                                                  
                 

                          
                                                       


                                                                                                            

            



                 
                                                                         
                               
                 

                          
                                                       


                                                                                                            


            
                 

              
                                                                              
                 

                          
                                                       



                                                                                                            

            



                 
                                                                         
                               
                 

                          
                                                       


                                                                                                            


            






                                                                                             
                                                       





                                                                                                            






                                                                                                 
                                                       













                                                                                                            
                                                       





                                                                                                            







                                                                                             
                                                       





                                                                                                            


                      
                                                                                          
                 

                          
                                                       


                                                                                                            





                           
                                                                                          
                               
                 

                          
                                                       


                                                                                                            


            
                   

              
                                                                                       


                          
                            






                                                                                                            
                        

              
                                                                                       



                               
                            






                                                                                                            
                      

              
                                                                                   
                 

                          
                                                       



                                                                                                              





                      
                                                                              
                               
                 

                          
                                                       


                                                                                                              


            
                        

              
                                                                                                 


                          
                            







                                                                                                              
                             

              
                                                                                            



                               
                            






                                                                                                              
                            

              
                                                                                 
                 

                          
                                                       


                                                                                                 

            
 
                      

              
                                                                              
                               
                 

                          
                                                       


                                                                                                 


            


                           
                                                                                               
                 

                          
                                                       


                                                                                                 





                                
                                                                                               
                               
                 

                          
                                                       


                                                                                                 


            



                               
                 

                          
                                                       

                                                                                                           





                               
                 

                          
                                                       

                                                                                                           


            


                    
                                                                                 
                 

                          
                                                       


                                                                                                            
 

               




                                     
                 

                              
                                                       

                                                                                                           


            




                            
                 

                              
                                                       

                                                                                                           

            
 




                            
                 

                              
                                                       

                                                                                                           

            
 




                                     
                 

                              
                                                       

                                                                                                           


            




                            
                 

                              
                                                       

                                                                                                           

            
 




                                     
                 

                              
                                                       

                                                                                                           


            




                                  
                 

                              
                                                       

                                                                                                           


            




                            
                 

                              
                                                       

                                                                                                           
 




                                  
                 

                              
                                                       

                                                                                                           


            


              
                                  
                         
                 

                               
                                                       

                                                                                                           

            
 


               
                                  
                                     
                 

                               
                                                       

                                                                                                           


            




                                      
                 

                                   
                                                       

                                                                                                           







                                      
                 

                                   
                                                       

                                                                                                           


            




                              
                 

                                   
                                                       

                                                                                                           
 




                                  
                 

                                   
                                                       

                                                                                                           


            




                              
                 

                                   
                                                       

                                                                                                           
 




                                  
                 

                                   
                                                       

                                                                                                           


            




                              
                 

                                   
                                                       

                                                                                                           







                                  
                 

                                   
                                                       

                                                                                                           







                              
                 

                                   
                                                       

                                                                                                           







                                  
                 

                                   
                                                       

                                                                                                           







                              
                 

                                                 
                                                       

                                                                                                           







                                  
                 

                                                 
                                                       

                                                                                                           


            
                 


                                       
                 

                                                 
                                                       

                                                                                                           
 




                                       
                 

                                                 
                                                       

                                                                                                           


            




                                  
                 

                              
                                                       

                                                                                                           




                            
                      
                 

                              
                                                       

                                                                                                           
 



                            
                                  
                 

                              
                                                       

                                                                                                           


            



                                  
                      
                 

                              
                                                       

                                                                                                           




                                  
                      
                 

                              
                                 

                                                                                                           

            
 
           


                              
                 

                                                 
                                                       

                                                                                                           

            
 
      

              
                                           
                 

                          
                                                       

                                                                                                           
 
            


                                 
                 

                          
                                                       

                                                                                                           
 



                                      
                 

                          
                                                       

                                                                                                 
 




                                      
                 

                          
                                                       

                                                                                                 


            



                                  
                 

                           
                                                       

                                                                                                           
 
                  



                                  
                 

                           
                                                       

                                                                                                           


            



                                       
                 

                           
                                                       

                                                                                                 
 
                       



                                       
                 

                           
                                                       

                                                                                                 


            



                                    
                                            
                 

                          
                                                       

                                                                                                           

            
 



                                    
                                            
                 

                          
                                                       

                                                                                                           

            
 



                                    
                                            
                               
                 

                          
                                                       

                                                                                                           


            
                      

              
                                                  
                                            


                          
                            





                                                                                                           
                           

              
                                                  
                                            



                               
                            





                                                                                                           


                   
                                                            
                 

                          
                                                       

                                                                                                           



                      
                                                              
                 

                          
                                                       

                                                                                                           



                            
                                                                            
                 

                          
                                                       

                                                                                                           
 


                   
                                                            
                 

                          
                                                       

                                                                                                           
 
               


                                              
                      
                 

                              
                                                       

                                                                                                           
 



                                             
                 

                          
                                                       

                                                                                                           




                                             
                 

                          
                                                       

                                                                                                           
 






                                                   
                                                       










                                                                                                           
                                                       





                                                                                                           
                                                               


                          
                                                       









                                                                                                 
                                                       


                                                                                                 


              
                                                                             
                 

                          
                                                       

                                                                                                           
 



                                   
                 

                                                 
                                                       

                                                                                                 
 
                 


                                             
                 

                          
                                                       

                                                                                                           
 


              
                                        



                              
                                                       





                                                                                                 
                                        



                              
                                                       



                                                                                                 
                 
 
                     
              
         
                                                                                    
                 

                          
                                                       

                                                                                                           
 
                 
              
         
                                                                                                                    
                 

                          
                                                       

                                                                                                           

              
              

                                   
                 

                          
                                                       

                                                                                                           
 



                                                                                         
                                            











                                                                                                                                                                                                                                                                                                  
                                            







                                                                                                                                                                                                                                                                                                                         
                          










                                                                                                                                                                                                                                                                         
                               










                                                                                                                                                                                                                                                                                                














                                                                                                                                                                                                                                                                
                                              







                                                                                                                                                                                                                                                                                       

                                










                                                                                                     
                                                       

















                                                                                                           
                                                       






                                                                                                           




                                                                                 
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       





                                                                                                           











                                                                                                     
                                                       





                                                                                                           




                                                                                 
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       










                                                                                                           
                                                                                                     




                          
                                                       





                                                                                                           
                      



                                                                                 
                                                                                                     

                 

                          
                          
                                                       
















                                                                                                           
                                                       
















                                                                                                           
                                                       
                                                




                                                                                                           
                  


                                                              
                                                                         


                                                                                                                           




                          
                                                                  
                                                                                                                          
                        
                                                                          
                                                                             


            
                  


                                                              

                                                                                                                           




                          
                                                                  

                                                                                                         
                                                                          
                                                                             


            







                                                                                                                                                              
                                                                                                                                        
                                            








                                                                                                                           
                                                                          









                                                                                                                                                                          
                                                                                                                                        
                                            








                                                                                                          
                                                                          



                                                                             




                                                                         


                                                                                                                                                     




                          
                                                                  


                                                                                                                           
                                                                          
                                                                             






                                                              

                                                                                                                                                                 




                          
                                                                  

                                                                                                          
                        
                                                                          
                                                                             


            
                      




















                                                                                                                           
                      



















                                                                                                                           
                                    






                                                                                                                                                              
                                                                                                                                        
                                            















                                                                                                                           
                                    




                                                                                                                                                                          
                                                                                                                                        
                                            















                                                                                                          
                           






















                                                                                                                                                     
                           




















                                                                                                                                                                 

                  


                         
                                                                        
                               
                                                                                         
                                
                 
                          



                              
                                                                                   
                               
                                                                                         
                                
                 
                               



                                       
                                                           
                               
                                                                                         
                                
                 
                          



                                            
                                                                      
                               
                                                                                         
                                
                 
                               



                         
                                                                        
                               
                                                                                         
                                
                 
                          



                              
                                                                                   
                               
                                                                                         
                                
                 
                               



                                       
                                                           
                               
                                                                                         
                                
                 
                          



                                            
                                                                      
                               
                                                                                         
                                
                 
                               



                        
                                                                        
                               
                                                                                        
                                
                 
                          



                             
                                                                                   
                               
                                                                                        
                                
                 
                               



                                      
                                                           
                               
                                                                                        
                                
                 
                          



                                           
                                                                      
                               
                                                                                        
                                
                 
                               
 


                     
                                                                        
                               
                                                                                     
                                
                 
                          



                   
                                                                        
                               
                                                                                   
                                
                 
                          



                   
                                                                        
                               
                                                                                   
                                
                 
                          



                 
                                                                        
                               
                                                                                 
                                
                 
                          



                 
                                                                        
                               
                                                                                 
                                
                 
                          
 
                    

              
                                                                                 
                               
                                                                                     
                                
                 
                          
 
                  

              
                                                                                 
                               
                                                                                   
                                
                 
                          



                 
                                                                        
                               
                                                                                 
                                
                 
                          



                  
                                                                        
                               
                                                                                  
                                
                 
                          



                       
                                                                        
                               
                                                                                       
                                
                 
                          



                     
                                                                        
                               
                                                                                     
                                
                 
                          
 


                      
                                                                        
                               
                                                                                      
                                
                 
                          



                        
                                                                        
                               
                                                                                        
                                
                 
                          



                      
                                                                        
                               
                                                                                      
                                
                 
                          



                          
                                                                        
                               
                                                                                          
                                
                 
                          



                        
                                                                        
                               
                                                                                        
                                
                 
                          
 


                       
                                                                        
                               
                                                                                       
                                
                 
                          
 


                       
                                                                        
                               
                                                                                       
                                
                 
                          



                 
                                                                        
                               
                                                                                                         
                                
                 
                          



               
                                                                        
                               
                                                                                                       
                                
                 
                          



                   
                                                                        
                               
                                                                                   
                                
                 
                          



                 
                                                                        
                               
                                                                                 
                                
                 
                          



                       
                                                                        
                               
                                                                                       
                                
                 
                          



                     
                                                                        
                               
                                                                                     
                                
                 
                          



                    
                                                                        
                               
                                                                                    
                                
                 
                          



                  
                                                                        
                               
                                                                                  
                                
                 
                          



                         
                                                                        
                               
                                                                                         
                                
                 
                          



                       
                                                                        
                               
                                                                                       
                                
                 
                          



                      
                                                                        
                               
                                                                                      
                                
                 
                          



                    
                                                                        
                               
                                                                                    
                                
                 
                          



                 
                                                                        
                               
                                                                                                         
                                
                 
                          



               
                                                                        
                               
                                                                                                       
                                
                 
                          



                      
                                                                        
                               
                                                                                      
                                
                 
                          



                    
                                                                        
                               
                                                                                    
                                
                 
                          



                    
                                                                        
                               
                                                                                    
                                
                 
                          



                  
                                                                        
                               
                                                                                  
                                
                 
                          



                          
                                                                        
                               
                                                                                          
                                
                 
                          



                        
                                                                        
                               
                                                                                        
                                
                 
                          



                           
                                                                        
                               
                                                                                           
                                
                 
                          



                         
                                                                        
                               
                                                                                         
                                
                 
                          



                       
                                                                        
                               
                                                                                                                                                      
                                
                 
                          



                     
                                                                        
                               
                                                                                                                                                    
                                
                 
                          



                  
                                                                        
                               
                                                                                  
                                
                 
                          



                
                                                                        
                               
                                                                                
                                
                 
                          



                   
                                                                        
                               
                                                                                   
                                
                 
                          



                 
                                                                        
                               
                                                                                 
                                
                 
                          



              
                                                                        
                               
                                                                                                 
                                
                 
                          



              
                                                                        
                               
                                                                                               
                                
                 
                          



              
                                                                                    
                               
                                                                            
                                
                 
                          





                          
                                                                                   
                               
                                                                                     
                                
                 
                               



                        
                                                                                   
                               
                                                                                   
                                
                 
                               



                        
                                                                                   
                               
                                                                                   
                                
                 
                               



                      
                                                                                   
                               
                                                                                 
                                
                 
                               



                      
                                                                                   
                               
                                                                                 
                                
                 
                               
 
                         

              
                                                                                            
                               
                                                                                     
                                
                 
                               
 
                       

              
                                                                                            
                               
                                                                                   
                                
                 
                               



                      
                                                                                   
                               
                                                                                 
                                
                 
                               



                       
                                                                                   
                               
                                                                                  
                                
                 
                               



                            
                                                                                   
                               
                                                                                       
                                
                 
                               



                          
                                                                                   
                               
                                                                                     
                                
                 
                               
 


                           
                                                                                   
                               
                                                                                      
                                
                 
                               



                             
                                                                                   
                               
                                                                                        
                                
                 
                               



                           
                                                                                   
                               
                                                                                      
                                
                 
                               



                               
                                                                                   
                               
                                                                                          
                                
                 
                               



                             
                                                                                   
                               
                                                                                        
                                
                 
                               
 


                            
                                                                                   
                               
                                                                                       
                                
                 
                               
 


                            
                                                                                   
                               
                                                                                       
                                
                 
                               



                      
                                                                                   
                               
                                                                                                         
                                
                 
                               



                    
                                                                                   
                               
                                                                                                       
                                
                 
                               



                        
                                                                                   
                               
                                                                                   
                                
                 
                               



                      
                                                                                   
                               
                                                                                 
                                
                 
                               



                            
                                                                                   
                               
                                                                                       
                                
                 
                               



                          
                                                                                   
                               
                                                                                     
                                
                 
                               



                         
                                                                                   
                               
                                                                                    
                                
                 
                               



                       
                                                                                   
                               
                                                                                  
                                
                 
                               



                              
                                                                                   
                               
                                                                                         
                                
                 
                               



                            
                                                                                   
                               
                                                                                       
                                
                 
                               



                           
                                                                                   
                               
                                                                                      
                                
                 
                               



                         
                                                                                   
                               
                                                                                    
                                
                 
                               



                      
                                                                                   
                               
                                                                                                         
                                
                 
                               



                    
                                                                                   
                               
                                                                                                       
                                
                 
                               



                           
                                                                                   
                               
                                                                                      
                                
                 
                               



                         
                                                                                   
                               
                                                                                    
                                
                 
                               



                         
                                                                                   
                               
                                                                                    
                                
                 
                               



                       
                                                                                   
                               
                                                                                  
                                
                 
                               



                               
                                                                                   
                               
                                                                                          
                                
                 
                               



                             
                                                                                   
                               
                                                                                        
                                
                 
                               



                                
                                                                                   
                               
                                                                                           
                                
                 
                               



                              
                                                                                   
                               
                                                                                         
                                
                 
                               



                            
                                                                                   
                               
                                                                                                                                                      
                                
                 
                               



                          
                                                                                   
                               
                                                                                                                                                    
                                
                 
                               



                       
                                                                                   
                               
                                                                                  
                                
                 
                               



                     
                                                                                   
                               
                                                                                
                                
                 
                               



                        
                                                                                   
                               
                                                                                   
                                
                 
                               



                      
                                                                                   
                               
                                                                                 
                                
                 
                               



                  
                                                                                   
                               
                                                                                                 
                                
                 
                               



                
                                                                                   
                               
                                                                                               
                                
                 
                               



                 
                                                                                               
                               
                                                                            
                                
                 
                               
 




                                   
                                                           
                               
                                                                                     
                                
                 
                          



                                 
                                                           
                               
                                                                                   
                                
                 
                          



                                 
                                                           
                               
                                                                                   
                                
                 
                          



                               
                                                           
                               
                                                                                 
                                
                 
                          



                               
                                                           
                               
                                                                                 
                                
                 
                          
 
                                  

              
                                                                    
                               
                                                                                     
                                
                 
                          
 
                                

              
                                                                    
                               
                                                                                   
                                
                 
                          



                               
                                                           
                               
                                                                                 
                                
                 
                          



                                
                                                           
                               
                                                                                  
                                
                 
                          



                                     
                                                           
                               
                                                                                       
                                
                 
                          



                                   
                                                           
                               
                                                                                     
                                
                 
                          
 


                                    
                                                           
                               
                                                                                      
                                
                 
                          



                                      
                                                           
                               
                                                                                        
                                
                 
                          



                                    
                                                           
                               
                                                                                      
                                
                 
                          



                                        
                                                           
                               
                                                                                          
                                
                 
                          



                                      
                                                           
                               
                                                                                        
                                
                 
                          
 


                                     
                                                           
                               
                                                                                       
                                
                 
                          
 


                                     
                                                           
                               
                                                                                       
                                
                 
                          



                               
                                                           
                               
                                                                                                         
                                
                 
                          



                             
                                                           
                               
                                                                                                       
                                
                 
                          



                                 
                                                           
                               
                                                                                   
                                
                 
                          



                               
                                                           
                               
                                                                                 
                                
                 
                          



                                     
                                                           
                               
                                                                                       
                                
                 
                          



                                   
                                                           
                               
                                                                                     
                                
                 
                          



                                  
                                                           
                               
                                                                                    
                                
                 
                          



                                
                                                           
                               
                                                                                  
                                
                 
                          



                                       
                                                           
                               
                                                                                         
                                
                 
                          



                                     
                                                           
                               
                                                                                       
                                
                 
                          



                                    
                                                           
                               
                                                                                      
                                
                 
                          



                                  
                                                           
                               
                                                                                    
                                
                 
                          



                               
                                                           
                               
                                                                                                         
                                
                 
                          



                             
                                                           
                               
                                                                                                       
                                
                 
                          



                                    
                                                           
                               
                                                                                      
                                
                 
                          



                                  
                                                           
                               
                                                                                    
                                
                 
                          



                                  
                                                           
                               
                                                                                    
                                
                 
                          



                                
                                                           
                               
                                                                                  
                                
                 
                          



                                        
                                                           
                               
                                                                                          
                                
                 
                          



                                      
                                                           
                               
                                                                                        
                                
                 
                          



                                         
                                                           
                               
                                                                                           
                                
                 
                          



                                       
                                                           
                               
                                                                                         
                                
                 
                          



                                     
                                                           
                               
                                                                                                                                                      
                                
                 
                          



                                   
                                                           
                               
                                                                                                                                                    
                                
                 
                          



                                
                                                           
                               
                                                                                  
                                
                 
                          



                              
                                                           
                               
                                                                                
                                
                 
                          



                                 
                                                           
                               
                                                                                   
                                
                 
                          



                               
                                                           
                               
                                                                                 
                                
                 
                          



                           
                                                           
                               
                                                                                                 
                                
                 
                          



                         
                                                           
                               
                                                                                               
                                
                 
                          
 
                          

              
                                                                       
                               
                                                                            
                                
                 
                          





                                        
                                                                      
                               
                                                                                     
                                
                 
                               



                                      
                                                                      
                               
                                                                                   
                                
                 
                               



                                      
                                                                      
                               
                                                                                   
                                
                 
                               



                                    
                                                                      
                               
                                                                                 
                                
                 
                               



                                    
                                                                      
                               
                                                                                 
                                
                 
                               
 
                                       

              
                                                                               
                               
                                                                                     
                                
                 
                               
 
                                     

              
                                                                               
                               
                                                                                   
                                
                 
                               



                                    
                                                                      
                               
                                                                                 
                                
                 
                               



                                     
                                                                      
                               
                                                                                  
                                
                 
                               



                                          
                                                                      
                               
                                                                                       
                                
                 
                               



                                        
                                                                      
                               
                                                                                     
                                
                 
                               
 


                                         
                                                                      
                               
                                                                                      
                                
                 
                               



                                           
                                                                      
                               
                                                                                        
                                
                 
                               



                                         
                                                                      
                               
                                                                                      
                                
                 
                               



                                             
                                                                      
                               
                                                                                          
                                
                 
                               



                                           
                                                                      
                               
                                                                                        
                                
                 
                               
 


                                          
                                                                      
                               
                                                                                       
                                
                 
                               



                                          
                                                                      
                               
                                                                                       
                                
                 
                               



                                    
                                                                      
                               
                                                                                                         
                                
                 
                               



                                  
                                                                      
                               
                                                                                                       
                                
                 
                               



                                      
                                                                      




                                                                                   



                                    
                                                                      
                               
                                                                                 
                                
                 
                               



                                          
                                                                      
                               
                                                                                       
                                
                 
                               



                                        
                                                                      
                               
                                                                                     
                                
                 
                               



                                       
                                                                      
                               
                                                                                    
                                
                 
                               



                                     
                                                                      
                               
                                                                                  
                                
                 
                               



                                            
                                                                      
                               
                                                                                         
                                
                 
                               



                                          
                                                                      
                               
                                                                                       
                                
                 
                               



                                         
                                                                      
                               
                                                                                      
                                
                 
                               



                                       
                                                                      
                               
                                                                                    
                                
                 
                               



                                    
                                                                      
                               
                                                                                                         
                                
                 
                               



                                  
                                                                      
                               
                                                                                                       
                                
                 
                               



                                         
                                                                      
                               
                                                                                      
                                
                 
                               



                                       
                                                                      
                               
                                                                                    
                                
                 
                               



                                       
                                                                      
                               
                                                                                    
                                
                 
                               



                                     
                                                                      
                               
                                                                                  
                                
                 
                               



                                             
                                                                      
                               
                                                                                          
                                
                 
                               



                                           
                                                                      
                               
                                                                                        
                                
                 
                               



                                              
                                                                      
                               
                                                                                           
                                
                 
                               



                                            
                                                                      
                               
                                                                                         
                                
                 
                               



                                          
                                                                      
                               
                                                                                                                                                      
                                
                 
                               



                                        
                                                                      
                               
                                                                                                                                                    
                                
                 
                               



                                     
                                                                      
                               
                                                                                  
                                
                 
                               



                                   
                                                                      
                               
                                                                                
                                
                 
                               



                                      
                                                                      
                               
                                                                                   
                                
                 
                               



                                    
                                                                      
                               
                                                                                 
                                
                 
                               



                                
                                                                      
                               
                                                                                                 
                                
                 
                               



                              
                                                                      
                               
                                                                                               
                                
                 
                               
 
                               

              
                                                                                  
                               
                                                                            
                                
                 
                               
 



                              




                     
                  

                               

                                                                                                           








                               




                     
                  

                                            










                            


               

                           

                             





                     
stages:
  - prebuild
  - build
  - stats

before_script:
  - uname -a
  - cat /etc/os-release
  - pwd
  - mkdir logs || true
  - ${UPDATEREPOS}
  - tools/ci/scripts/dockerretry.sh ${PMUPDATE} >logs/apt.log
  - tools/ci/scripts/dockerretry.sh ${PMINSTALL} ${PACKAGES} >>logs/apt.log

image: debian:unstable
variables:
  GET_SOURCES_ATTEMPTS: "5"
  ARTIFACT_DOWNLOAD_ATTEMPTS: "5"
  UPDATEREPOS: "tools/ci/scripts/updaterepos.sh"
  PMUPDATE: "apt-get update"
  PMINSTALL: "apt-get install -y -qq"

.job-shared: &job-shared
  artifacts:
    paths:
    - logs
    when: always
    expire_in: 3 week
  dependencies: []

.job-deheader_shared: &job-deheader_shared
  variables:
    INCLUDES: "-I/usr/include/SDL -I/usr/include/libxml2"
    LOGFILE: logs/deheader.log
    CXX: g++-5
    PACKAGES: python wget 
              gcc-5 g++-5 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

.job-deheader_sdl2_shared: &job-deheader_sdl2_shared
  variables:
    INCLUDES: "-I/usr/include/SDL2 -I/usr/include/libxml2"
    LOGFILE: logs/deheader.log
    CXX: g++-5
    PACKAGES: python wget 
              gcc-5 g++-5 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

# pre build

gcc-5_c++11_i386:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc5_c++11.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-6-i386:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.9:
  stage: prebuild
  script:
  - ./tools/ci/jobs/clang39.sh
  <<: *job-shared
  variables:
    PACKAGES: clang-3.9 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_physfs:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh --with-physfs
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-4.4:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc44.sh
  image: debian:oldstable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.4 g++-4.4 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-5_sdl2:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc5_sdl2.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-6_game_only:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh --without-dyecmd
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_dyecmd_only:
  stage: prebuild
  script:
  - ./tools/ci/jobs/gcc6.sh --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

mplint_po:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh po
  <<: *job-shared
  variables:
    PACKAGES: gcc g++ git 
              make autoconf automake autopoint gettext

mplint_src:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh src
  <<: *job-shared
  variables:
    PACKAGES: gcc g++ git 
              make autoconf automake autopoint gettext

mplint_data:
  stage: prebuild
  script:
  - ./tools/ci/jobs/mplint.sh data
  <<: *job-shared
  variables:
    PACKAGES: gcc g++ git 
              make autoconf automake autopoint gettext

cpplint:
  stage: prebuild
  script:
  - ./tools/ci/jobs/cpplint.sh
  <<: *job-shared
  variables:
    PACKAGES: python wget

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
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

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
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

pngcheck:
  stage: prebuild
  script:
  - ./tools/ci/jobs/pngcheck.sh
  <<: *job-shared
  variables:
    PACKAGES: pngcheck

icccheck:
  stage: prebuild
  script:
  - ./tools/ci/jobs/imagemagiccheck.sh
  <<: *job-shared
  variables:
    PACKAGES: imagemagick

# tests

# disabled due memory issue. Probably out of memory of gcc issues
.gcc-6_SDL_SDL-1.2_sanitize2_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.3
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --without-manaplusgame --without-dyecmd
  - export LD_PRELOAD
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_asan
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              valgrind 
              wget unzip
    ASAN_OPTIONS: "detect_leaks=0"
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

# disabled due memory issue. Probably out of memory of gcc issues
.gcc-6_SDL_default_sanitize2_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.3
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --with-sdl2 --without-manaplusgame --without-dyecmd
  - export LD_PRELOAD
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default_asan
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev 
              valgrind 
              wget unzip
    ASAN_OPTIONS: "detect_leaks=0"
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-5_sanitize_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_simd:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests_simd.sh --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-5_sanitize_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh --without-dyecmd --without-manaplusgame
  - ldd ./src/manaplustests | grep "libasan"
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-5_sanitize_no_opengl_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-5_sanitize_no_opengltests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  - ldd ./src/manaplustests | grep "libasan"
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-5_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tests.sh --without-dyecmd
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-5_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tests.sh --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_gcov:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests_gcov.sh --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              gcovr 
              valgrind
  tags:
    - docker

gcc-6_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_glibcdebug:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --enable-glibcdebug
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_pugixml_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --enable-libxml=pugixml
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_pugixml_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --enable-libxml=pugixml
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_glibcdebug_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --enable-glibcdebug
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_no_opengl:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_no_opengl_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_physfs:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --with-physfs
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_tests_physfs_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame --with-physfs
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind
  tags:
    - docker

gcc-6_sdl2_tests_gcov:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sdl2_tests_gcov.sh --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev 
              gcovr
              valgrind
  tags:
    - docker

gcc-6_sdl2_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sdl2_tests.sh --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev 
              valgrind
  tags:
    - docker

gcc-6_sdl2_tests_physfs:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sdl2_tests_gcov.sh --without-dyecmd --without-manaplusgame --with-physfs
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev 
              gcovr
              valgrind
  tags:
    - docker

gcc-6_sdl2_tests_physfs_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sdl2_tests.sh --without-dyecmd --without-manaplusgame --with-physfs
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev 
              valgrind
  tags:
    - docker

gcc-5_sdl2_tests_glibcdebug:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh --without-manaplusgame --enable-glibcdebug
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
              valgrind
  tags:
    - docker

gcc-5_sdl2_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
              valgrind
  tags:
    - docker

gcc-5_sdl2_no_opengl_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
              valgrind
  tags:
    - docker

gcc-5_sdl2_no_opengl_tests_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_tests.sh --without-opengl --without-dyecmd --without-manaplusgame
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
              valgrind
  tags:
    - docker

gcc-6_lto:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_lto.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_lto_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_lto.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-5_tarball_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_tarball_tests.sh --without-dyecmd --without-manaplusgame
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev 
              valgrind

# simple builds

gcc-4.4_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc44.sh
  image: vicamo/debian:oldstable-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.4 g++-4.4 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.5:
  stage: build
  script:
  - ./tools/ci/jobs/gcc45.sh
  image: ubuntu:12.04
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.5 g++-4.5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.6:
  stage: build
  script:
  - ./tools/ci/jobs/gcc46.sh
  image: debian:oldstable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.6 g++-4.6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.6_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc46.sh
  image: vicamo/debian:oldstable-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.6 g++-4.6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.7:
  stage: build
  script:
  - ./tools/ci/jobs/gcc47.sh
  image: debian:oldstable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.7 g++-4.7 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.7_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc47.sh
  image: vicamo/debian:oldstable-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.7 g++-4.7 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.7_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc47_c++11.sh
  image: debian:oldstable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.7 g++-4.7 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.8:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.8 g++-4.8 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-4.8_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48.sh
  image: vicamo/debian:stable-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.8 g++-4.8 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.0:
  stage: build
  script:
  - ./tools/ci/jobs/clang.sh clang
  image: debian:oldstable
  <<: *job-shared
  variables:
    PACKAGES: clang libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.0_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang.sh clang
  image: vicamo/debian:oldstable-i386
  <<: *job-shared
  variables:
    PACKAGES: clang libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.3:
  stage: build
  script:
  - ./tools/ci/jobs/clang.sh clang-3.3
  image: ubuntu:12.04
  <<: *job-shared
  variables:
    PACKAGES: clang-3.3 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.3_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang.sh clang-3.3
  image: vicamo/ubuntu:precise-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.3 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.4:
  stage: build
  script:
  - ./tools/ci/jobs/clang34.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: clang-3.4 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

clang-3.4_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang34.sh
  image: vicamo/debian:stable-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.4 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.5:
  stage: build
  script:
  - ./tools/ci/jobs/clang35.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: clang-3.5 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

clang-3.5_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang35.sh
  image: vicamo/debian:stable-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.5 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.6:
  stage: build
  script:
  - ./tools/ci/jobs/clang36.sh
  image: ubuntu:14.04
  <<: *job-shared
  variables:
    PACKAGES: clang-3.6 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.6_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang36.sh
  image: vicamo/ubuntu:trusty-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.6 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.7:
  stage: build
  script:
  - ./tools/ci/jobs/clang37.sh
  image: ubuntu:16.04
  <<: *job-shared
  variables:
    PACKAGES: clang-3.7 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.7_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang37.sh
  image: vicamo/ubuntu:xenial-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.7 libc++-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.8:
  stage: build
  script:
  - ./tools/ci/jobs/clang38.sh
  image: ubuntu:16.04
  <<: *job-shared
  variables:
    PACKAGES: clang-3.8 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

clang-3.8_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang38.sh
  image: vicamo/ubuntu:xenial-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.8 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

.clang-3.9_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/clang39.sh_c++11.sh
  <<: *job-shared
  variables:
    PACKAGES: clang-3.9 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

.clang-3.9_c++11_i386:
  stage: build
  script:
  - ./tools/ci/jobs/clang39.sh_c++11.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: clang-3.9 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.8_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48_c++11.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.8 g++-4.8 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-4.9:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-4.9_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh
  image: vicamo/debian:stable-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-4.9_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49_c++11.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

cmake_gcc-4.9:
  stage: build
  script:
  - ./tools/ci/jobs/cmake_gcc49.sh
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make cmake gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

.clang-4.0:
  stage: prebuild
  script:
  - ./tools/ci/jobs/clang40.sh
  <<: *job-shared
  variables:
    PACKAGES: clang-4.0 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-5:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --enable-werror
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-5_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_c++11.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-5_sdl2_c++11:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_c++11.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-5_sdl2_c++11_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sdl2_c++11.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
  tags:
    - docker

gcc-snapshot:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-snapshot 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-snapshot_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-snapshot 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-snapshot_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sdl2.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-snapshot 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-snapshot_sdl2_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sdl2.sh
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-snapshot 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
  tags:
    - docker

gcc-5_sanitize:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_sanitize.sh
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-6_sanitize:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-6_sanitize_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh
  - ldd ./src/manaplustests | grep "libasan"
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-6_sanitize_physfs:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh --with-physfs
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc-6_sanitize_physfs_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6_sanitize.sh --with-physfs
  - ldd ./src/manaplustests | grep "libasan"
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              libphysfs-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker

gcc_without_mumble:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --without-mumble --enable-werror
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc_without_customnls:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --enable-customnls --enable-werror
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc_without_customnls_nonls:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --enable-customnls --disable-nls --enable-werror
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc_without_opengl:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --without-opengl --enable-werror
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc49_cilkplus:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh --enable-cilkplus
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-5_cilkplus:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5.sh --enable-cilkplus
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_cilkplus:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --enable-cilkplus
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_pugixml:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --enable-libxml=pugixml
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_pugixml_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --enable-libxml=pugixml
  image: vicamo/debian:sid-i386
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-6_pugixml_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --with-sdl2 --enable-libxml=pugixml
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-6_pugixml_sdl2_i386:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --with-sdl2 --enable-libxml=pugixml
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc_portable:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --with-opengl --enable-tmwa --enable-portable=yes
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

clang-3.9_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/clang39_sdl2.sh
  <<: *job-shared
  variables:
    PACKAGES: clang-3.9 libc++-dev libc++abi-dev 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-6_no_asserts:
  stage: build
  script:
  - ./tools/ci/jobs/gcc6.sh --disable-asserts
  <<: *job-shared
  variables:
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-4.8_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc48.sh --with-sdl2
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.8 g++-4.8 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

gcc-4.9_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gcc49.sh --with-sdl2
  image: debian:stable
  <<: *job-shared
  variables:
    PACKAGES: gcc-4.9 g++-4.9 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev


# different tools

gcc-5_h_eathena_tmwa:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_h.sh -std=c++0x -DDEBUGBUILD -DTMWA_SUPPORT -DENABLE_LIBXML
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

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
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libpugixml-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

gcc-5_tarball:
  stage: build
  script:
  - ./tools/ci/jobs/gcc5_tarball.sh
  <<: *job-shared
  variables:
    PACKAGES: gcc-5 g++-5 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev

.fedora_gcc-snapshot_sanitize_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sanitize_tests.sh --without-dyecmd --without-manaplusgame
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL-devel SDL_net-devel SDL_image-devel SDL_ttf-devel SDL_mixer-devel SDL_gfx-devel zlib-devel gettext-devel automake autoconf valgrind libasan liblsan libubsan"
  tags:
  - docker

.fedora_gcc-snapshot_sanitize_sdl2_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_sanitize_tests.sh --with-sdl2 --without-dyecmd --without-manaplusgame
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils mesa-libGL-devel gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL2-devel SDL2_net-devel SDL2_image-devel SDL2_ttf-devel SDL2_mixer-devel SDL2_gfx-devel zlib-devel gettext-devel automake autoconf valgrind libasan liblsan libubsan"
  tags:
  - docker

fedora_gcc-snapshot_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_tests.sh --without-dyecmd --without-manaplusgame
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL-devel SDL_net-devel SDL_image-devel SDL_ttf-devel SDL_mixer-devel SDL_gfx-devel zlib-devel gettext-devel automake autoconf valgrind"
  tags:
  - docker

fedora_gcc-snapshot_sdl2_tests:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot_tests.sh --with-sdl2 --without-dyecmd --without-manaplusgame
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils mesa-libGL-devel gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL2-devel SDL2_net-devel SDL2_image-devel SDL2_ttf-devel SDL2_mixer-devel SDL2_gfx-devel zlib-devel gettext-devel automake autoconf valgrind"
  tags:
  - docker

fedora_gcc-snapshot:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL-devel SDL_net-devel SDL_image-devel SDL_ttf-devel SDL_mixer-devel SDL_gfx-devel zlib-devel gettext-devel automake autoconf"
  tags:
  - docker

fedora_gcc-snapshot_sdl2:
  stage: build
  script:
  - ./tools/ci/jobs/gccsnapshot.sh --with-sdl2
  <<: *job-shared
  image: fedora:rawhide
  variables:
    PMUPDATE: "dnf install --refresh -y @development-tools"
    PMINSTALL: "dnf install -y bash tar findutils mesa-libGL-devel gcc gcc-c++ make libpng-devel libcurl-devel libxml2-devel gcc physfs-devel gcc SDL2-devel SDL2_net-devel SDL2_image-devel SDL2_ttf-devel SDL2_mixer-devel SDL2_gfx-devel zlib-devel gettext-devel automake autoconf"
  tags:
  - docker

# build with other libs versions

gcc-6_zlib_v1.2.3.9:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib
    LIBVERSION: v1.2.3.9
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_zlib_v1.2.6.1:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib
    LIBVERSION: v1.2.6.1
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_zlib_v1.2.9:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib
    LIBVERSION: v1.2.9
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_zlib_v1.2.10:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib
    LIBVERSION: v1.2.10
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_zlib_v1.2.11:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib
    LIBVERSION: v1.2.11
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

# error compilation. cant find SDL.
.gcc-6_zlib_ng_develop:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: zlib_ng
    LIBVERSION: develop
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_master:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: master
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng17:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng17
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng16:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng16
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng15:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng15
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng14:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng14
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng12:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng12
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_libpng_libpng10:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: libpng
    LIBVERSION: libpng10
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libcurl4-gnutls-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_curl_curl-7_9_8:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: curl
    LIBVERSION: curl-7_9_8
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libpng-dev zlib1g-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_curl_curl-7_40_0:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: curl
    LIBVERSION: curl-7_40_0
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libpng-dev zlib1g-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_curl_curl-7_52_1:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: curl
    LIBVERSION: curl-7_52_1
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext 
              libxml2-dev libpng-dev zlib1g-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
              wget unzip
  tags:
    - docker

gcc-6_SDL_SDL-1.2:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_default:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_SDL-1.2_sanitize_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests libasan
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              valgrind 
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_default_sanitize_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --with-sdl2 --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests libasan
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev 
              valgrind 
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_SDL-1.2_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              valgrind 
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_default_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_tests.sh --with-sdl2 --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev 
              valgrind 
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
  tags:
    - docker

gcc-6_SDL_SDL-1.2_old:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              libjpeg-dev libtiff-dev 
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_SDL_default_old:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev
              libjpeg-dev libtiff-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_SDL_SDL-1.2_old_sanitize_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests libasan
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              valgrind 
              libjpeg-dev libtiff-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_SDL_default_old_sanitize_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_sanitize_tests.sh --with-sdl2 --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests libasan
  - ldd ./src/manaplustests | grep "libasan"
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev 
              valgrind 
              libjpeg-dev libtiff-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_SDL_SDL-1.2_old_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - echo /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvz}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} env
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev 
              valgrind 
              libjpeg-dev libtiff-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

gcc-6_SDL_default_old_test:
  stage: build
  script:
  - ./tools/ci/scripts/downloadlib.sh ${LIBNAME} ${LIBVERSION}
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc6_tests.sh --with-sdl2 --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  <<: *job-shared
  variables:
    LIBNAME: SDL
    LIBVERSION: default_old
    PACKAGES: gcc-6 g++-6 
              make autoconf automake autopoint gettext pkg-config 
              libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev 
              valgrind 
              libjpeg-dev libtiff-dev
              wget unzip
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
    POST_CXXFLAGS: "-Wno-undef"
  tags:
    - docker

# deheader default

deheader_gui_windows_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_windows_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_gui_windows_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_windows_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_gui_widgets_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_widgets_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_gui_widgets_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_widgets_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_gui_models_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_models_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_gui_models_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_sdl2_gui_models_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_actions_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_actions_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_being_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_being_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_const_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_dyecmd_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_dyecmd_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_enums_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_events_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_fonts_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_fonts_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_models_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_popups_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_popups_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_shortcut_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_shortcut_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_widgets_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_windows_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_input_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_input_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_listeners_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_listeners_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_ea_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_ea_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_eathena_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_eathena_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_tmwa_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_tmwa_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_particle_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_particle_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_render_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_render_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_db_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_db_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_map_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_map_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_test_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_test_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_utils_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_utils_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

# deheader sdl2

deheader_sdl2_actions_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_actions_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_being_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_being_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_const_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_dyecmd_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_dyecmd_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_enums_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_events_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_fonts_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_fonts_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_models_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_popups_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_popups_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_shortcut_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_shortcut_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_widgets_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_windows_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_input_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_input_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_listeners_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_listeners_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_ea_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_ea_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_eathena_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_eathena_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_tmwa_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_tmwa_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_particle_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_particle_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_render_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_render_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_db_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_db_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_map_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_map_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_test_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_test_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_utils_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_utils_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_OPENGL -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

# dehedeart without opengl

deheader_actions_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_actions_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_being_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_being_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_const_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_dyecmd_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_dyecmd_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_enums_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_events_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_fonts_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_fonts_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_models_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_popups_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_popups_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_shortcut_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_shortcut_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_widgets_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_windows_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_gui_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_input_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_input_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_listeners_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_listeners_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_ea_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_ea_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_eathena_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_eathena_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_tmwa_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_tmwa_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_net_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_particle_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_particle_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_render_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_render_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_db_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_db_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_map_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_map_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_resources_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./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
  <<: *job-shared
  <<: *job-deheader_shared

deheader_test_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_test_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_utils_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_utils_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

deheader_withoutopengl_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_shared

# deheader sdl2

deheader_sdl2_actions_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_actions_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/actions -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_being_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_being_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/being -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_const_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/const -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_dyecmd_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_dyecmd_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DDYECMD -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/dyetool -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_enums_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/enums -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_events_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/events -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_fonts_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_fonts_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/fonts -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_models_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/models -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_popups_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_popups_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/popups -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_shortcut_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_shortcut_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/shortcut -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_widgets_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/widgets -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_windows_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/gui/windows -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_gui_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_input_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_input_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/input -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_listeners_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_listeners_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/listeners -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_ea_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_ea_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/ea -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_eathena_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_eathena_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/eathena -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_tmwa_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_tmwa_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/net/tmwa -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_net_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_particle_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_particle_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/particle -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_render_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_render_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/render -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_db_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_db_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/db -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_map_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_map_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/resources/map -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_resources_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./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
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_test_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_test_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/test -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_utils_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.cpp" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_utils_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src/utils -type f -name "*.h" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_withoutopengl_cpp:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cpp" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_withoutopengl_h:
  stage: build
  script:
  - export FLAGS="-DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.h" ! -path "./src/*/*" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

deheader_sdl2_withoutopengl_cc:
  stage: build
  script:
  - export FLAGS="-DUNITTESTS -DENABLE_LIBXML -DUSE_X11 -DTMWA_SUPPORT -DUSE_SDL2"
  - ./tools/ci/jobs/deheader.sh
  - find ./src -type f -name "*.cc" -exec tools/ci/scripts/deheader.sh {} \;
  - ./tools/ci/jobs/deheader2.sh
  <<: *job-shared
  <<: *job-deheader_sdl2_shared

doxygen:
  stage: build
  script:
  - ./tools/ci/jobs/doxygen.sh
  artifacts:
    paths:
    - doxygen
    expire_in: 3 week
    when: always
  dependencies: []
  variables:
    PACKAGES: doxygen graphviz 
              libxml2-dev libcurl4-gnutls-dev libpng-dev 
              libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
  tags:
    - docker
  only:
    - master

gitstats:
  stage: build
  script:
  - ./tools/ci/jobs/gitstats.sh
  artifacts:
    paths:
    - stats
    expire_in: 3 week
    when: always
  dependencies: []
  variables:
    PACKAGES: python zlib1g git-core gnuplot
  tags:
    - docker
  only:
    - master

# stats

pages:
  stage: stats
  script:
  - ./tools/ci/jobs/pages.sh
  dependencies:
    - doxygen
    - gitstats
    - gcc-6_tests_gcov
    - gcc-6_sdl2_tests_gcov
  variables:
    PACKAGES: git-core python
  artifacts:
    paths:
    - public
    expire_in: 3 week
  only:
    - master