summaryrefslogblamecommitdiff
path: root/.gitlab-ci.yml
blob: e6bfb4a9d7372168223fd09c7c01cf67a45f3801 (plain) (tree)
1
2
3
4
5
6
7
8
9
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
       
         
            


              

                       
 
                      


                                 
                                                                                                       
 



                              
                 
         
                
                       
 

                           


                                                                                                                 
                                                                                                                           
                    
                                                            
                                       

                                                  



                                                                  
                                                                 





                                                     
                                                                     
            
                                 





























                                                                                                    

                           

              
                                                                                                                 
                                                                                                                           
                    
                                                            
                                        
                                                                                           
                                               



                                                                  
                                                                 






                                                      
                                 





























                                                                                                    



                                                                                                                 
                                                                                                                           



                                                  



                                                                  
                                                                 











                                                                  
            


                                                                                                                 
                                                                                                                           
                    
                                  
                                                                                 
                                               
                                                                
                                                                  

                                                                 
                                                                 



                                                      
                      

                            
                                                       
                                                     
                    




                                                                                                                 
                                                                                                                                             

                                            




                                                                                           

                                                                     
                                                                 
                                                                   
                                                                 














                                                                                                                 
                                                                                                                                             

                                            



                                                                                           

                                                                     
                                                                 
                                                                   
                                                                 









                                                                           
 
























                                                                                                                           
























                                                                                                                           






                                                                                                                           
                                                                                   























                                                                                                                           
                                                                                   















                                                                  
























                                                                                                                           
























                                                                                                                           




























































































































































































































































































































































































































































                                                                                                                                                                 
stages:
  - build
  - manaplus

before_script:
  - uname -a
  - cat /etc/os-release
  - mkdir logs || true

image: debian:unstable
variables:
  GET_SOURCES_ATTEMPTS: "5"
  ARTIFACT_DOWNLOAD_ATTEMPTS: "5"
  MANAPLUS_CLONE: "git clone --branch master --depth 1 https://gitlab.com/manaplus/manaplus.git cloned"

.job-artifacts: &job-artifacts
  artifacts:
    paths:
    - logs
    - cloned/logs
    - bin
    when: always
    expire_in: 3 months

# disabled due kernel issue
.SDL_SDL-1.2_asan:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.4
  - ./.ci/buildlib.sh SDL SDL-1.2 _asan
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL_image SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_mixer SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_net SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_ttf SDL-1.2
  - export LD_PRELOAD
  - ./.ci/copyfinal.sh
  - grep "1.2" /usr/local/spm/bin/${installname}/lib/pkgconfig/sdl.pc
  variables:
    installname: SDL_SDL-1.2_asan
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
    ASAN_OPTIONS: "detect_leaks=0"
    CXXFLAGS: "-fsanitize=address -fsanitize=undefined
               -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
               -fsanitize=vla-bound -fsanitize=null -fsanitize=return
               -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
               -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
               -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
               -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
               -fno-omit-frame-pointer"
    CFLAGS: "-fsanitize=address -fsanitize=undefined
             -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
             -fsanitize=vla-bound -fsanitize=null -fsanitize=return
             -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
             -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
             -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
             -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
             -fno-omit-frame-pointer"
    LDFLAGS: "-lasan -lubsan
              -fsanitize=address -fsanitize=undefined
              -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
              -fsanitize=vla-bound -fsanitize=null -fsanitize=return
              -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
              -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
              -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
              -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
              -fno-omit-frame-pointer"
  <<: *job-artifacts

# disabled due kernel issue
.SDL_default_asan:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.4
  - ./.ci/buildlib.sh SDL2 default _asan
  - cp /usr/local/spm/env/runSDL2_default_asan.sh /usr/local/spm/env/runSDL_default_asan.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf default
  - export LD_PRELOAD
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_default_asan
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
    ASAN_OPTIONS: "detect_leaks=0"
    CXXFLAGS: "-fsanitize=address -fsanitize=undefined
               -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
               -fsanitize=vla-bound -fsanitize=null -fsanitize=return
               -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
               -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
               -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
               -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
               -fno-omit-frame-pointer"
    CFLAGS: "-fsanitize=address -fsanitize=undefined
             -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
             -fsanitize=vla-bound -fsanitize=null -fsanitize=return
             -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
             -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
             -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
             -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
             -fno-omit-frame-pointer"
    LDFLAGS: "-lasan -lubsan
              -fsanitize=address -fsanitize=undefined
              -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
              -fsanitize=vla-bound -fsanitize=null -fsanitize=return
              -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
              -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
              -fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
              -fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
              -fno-omit-frame-pointer"
  <<: *job-artifacts

SDL_SDL-1.2:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL_image SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_mixer SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_net SDL-1.2
  - ${runenvtool} ./.ci/buildlib.sh SDL_ttf SDL-1.2
  - ./.ci/copyfinal.sh
  - grep "1.2" /usr/local/spm/bin/SDL_SDL-1.2/lib/pkgconfig/sdl.pc
  variables:
    installname: SDL_SDL-1.2
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_default:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 default
  - cp /usr/local/spm/env/runSDL2_default.sh /usr/local/spm/env/runSDL_default.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf default
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_default
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_SDL-1.2_old:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libicu-dev 
                     libjpeg-dev libtiff-dev
                     bison flex
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL release-1.2.15
  - cp /usr/local/spm/env/runSDL_release-1.2.15.sh /usr/local/spm/env/runSDL_SDL-1.2_old.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib v1.2.5
  - ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng libpng10
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype VER-2-4-9
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 v2.9.1
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl curl-7_12_3
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 2.0.2
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh SDL_image release-1.2.5
  - ${runenvtool} ./.ci/buildlib.sh SDL_mixer release-1.2.7
  - ${runenvtool} ./.ci/buildlib.sh SDL_net release-1.2.6
  - ${runenvtool} ./.ci/buildlib.sh SDL_ttf release-2.0.11
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_SDL-1.2_old
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_v1.2.5.sh
  <<: *job-artifacts

SDL_default_old:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libicu-dev 
                     libjpeg-dev libtiff-dev
                     bison flex
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.0
  - cp /usr/local/spm/env/runSDL2_release-2.0.0.sh /usr/local/spm/env/runSDL_default_old.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib v1.2.5
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng libpng10
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype VER-2-4-9
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 v2.9.1
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl curl-7_12_3
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 2.0.2
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh SDL2_image release-2.0.0
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.0
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.0
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.12
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_default_old
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_v1.2.5.sh
  <<: *job-artifacts

SDL_201:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.1
  - cp /usr/local/spm/env/runSDL2_release-2.0.1.sh /usr/local/spm/env/runSDL_201.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.13
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_201
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_202:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.2
  - cp /usr/local/spm/env/runSDL2_release-2.0.2.sh /usr/local/spm/env/runSDL_202.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.13
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_202
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_203:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.3
  - cp /usr/local/spm/env/runSDL2_release-2.0.3.sh /usr/local/spm/env/runSDL_203.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.13
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_203
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_204:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.4
  - cp /usr/local/spm/env/runSDL2_release-2.0.4.sh /usr/local/spm/env/runSDL_204.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.14
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_204
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_205:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.5
  - cp /usr/local/spm/env/runSDL2_release-2.0.5.sh /usr/local/spm/env/runSDL_205.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net release-2.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf release-2.0.14
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_205
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts

SDL_206:
  stage: build
  script:
  - ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
                     libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
  - ./.ci/copyspm.sh
  - ./.ci/buildlib.sh SDL2 release-2.0.6
  - cp /usr/local/spm/env/runSDL2_release-2.0.6.sh /usr/local/spm/env/runSDL_206.sh
  - ${runenvtool} ./.ci/buildlib.sh zlib master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
  - ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
  - ${runenvtool} ./.ci/buildlib.sh SDL2_image default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_mixer default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_net default
  - ${runenvtool} ./.ci/buildlib.sh SDL2_ttf default
  - ./.ci/copyfinal.sh
  variables:
    installname: SDL_206
    runenvtool: /usr/local/spm/env/run${installname}.sh
    runenvtoolz: /usr/local/spm/env/runzlib_master.sh
  <<: *job-artifacts


manaplus_SDL-1.2:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_SDL-1.2
  <<: *job-artifacts

manaplus_default:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: default
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_default
  <<: *job-artifacts

manaplus_201:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 201
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_201
  <<: *job-artifacts

manaplus_202:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 202
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_202
  <<: *job-artifacts

manaplus_203:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 203
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_203
  <<: *job-artifacts

manaplus_204:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 204
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_204
  <<: *job-artifacts

manaplus_205:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 205
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_205
  <<: *job-artifacts

manaplus_206:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: 206
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_206
  <<: *job-artifacts

manaplus_SDL-1.2_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_SDL-1.2
  <<: *job-artifacts

manaplus_default_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: default
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_default
  <<: *job-artifacts

manaplus_201_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 201
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_201
  <<: *job-artifacts

manaplus_202_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 202
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_202
  <<: *job-artifacts

manaplus_203_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 203
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_203
  <<: *job-artifacts

manaplus_204_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 204
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_204
  <<: *job-artifacts

manaplus_205_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 205
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_205
  <<: *job-artifacts

manaplus_206_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: 206
    runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
    runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
    POST_CXXFLAGS: "-Wno-undef"
  dependencies:
    - SDL_206
  <<: *job-artifacts

manaplus_SDL-1.2_old:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     libjpeg-dev libtiff-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_old
    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"
  dependencies:
    - SDL_SDL-1.2_old
  <<: *job-artifacts

manaplus_default_old:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     libjpeg-dev libtiff-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh --with-sdl2
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
  variables:
    LIBNAME: SDL
    LIBVERSION: default_old
    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"
  dependencies:
    - SDL_default_old
  <<: *job-artifacts

manaplus_SDL-1.2_old_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     libjpeg-dev libtiff-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_tests.sh --without-manaplusgame --without-dyecmd
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
  variables:
    LIBNAME: SDL
    LIBVERSION: SDL-1.2_old
    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"
  dependencies:
    - SDL_SDL-1.2_old
  <<: *job-artifacts

manaplus_default_old_test:
  stage: manaplus
  script:
  - ./.ci/install.sh gcc-7 g++-7 
                     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 libicu-dev
                     valgrind 
                     libjpeg-dev libtiff-dev
                     git wget unzip gdb valgrind netcat-openbsd procps
  - ./.ci/clonesrc.sh
  - cd cloned
  - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_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
  variables:
    LIBNAME: SDL
    LIBVERSION: default_old
    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"
  dependencies:
    - SDL_default_old
  <<: *job-artifacts