This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
/
.gitlab-ci.yml
executable file
·901 lines (844 loc) · 21 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
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
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
#.yml file for Gitlab-CI support
# Note that the following tokens must be supplied via the Gitlab Repository Settings:
# - CI_USER: username to pull from gitlab repository
# - CI_TOKEN: password to pull from gitlab repository
stages:
- check
- build
- test
- install
- package
- deploy
- downstream
# Default cmake arguments
variables:
REPO_HOST: "repositories.arlut.utexas.edu"
CMAKE_ARG_DEFAULT: "-DBUILD_EXT=ON -DBUILD_PYTHON=ON -DTEST_SWITCH=ON -DPIP_WHEEL_SWITCH=ON ../"
# this is usually set to master, unless there are downstream dependencies
SGLTK_BRANCH: master
DOCKER_REGISTRY: "modisdev:5000/sgl_ci"
# this can be used for incremental builds
# GIT_CLEAN_FLAGS: none
# This can be set to True by Gitlab UI to only build/test packages.
RELEASE_ONLY: "False"
REPO_HOST: "repositories.arlut.utexas.edu"
# Template for all normal jobs.
.normal_job:
only:
variables:
- $RELEASE_ONLY != "True"
# Template for all "big" builds.
.big_build:
only:
refs:
- main
- /^ci_.*$/
- /^version_.*_prep$/
variables:
- $RELEASE_ONLY != "True"
# Template for all builds that should produce packages.
.package_build:
only:
refs:
- main
- /^ci_.*$/
- /^version_.*_prep$/
- tags
- /^tag_.*$/
# Check Stage
# Runs static analysis on code.
static_analysis:
stage: check
needs: []
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- ./lint_test.sh
# Allow failures here to prevent blocking the rest of the pipeline.
allow_failure: true
# sgl_lint will verify that source files have proper copyright.
sgllint_lint:
stage: check
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_conda_py27:latest
script:
- '######'
- '# This job checks all files for required lines like copyright/license statements.'
- '######'
- conda activate py27
# Obtain the latest version of ./sgl_lint.py
- git clone --depth 1 https://${CI_USER}:${CI_TOKEN}@${REPO_HOST}/sgl/repo_utils.git
- python repo_utils/sgl_lint.py -v -R core
- python repo_utils/sgl_lint.py -v -R ext
- python repo_utils/sgl_lint.py -v -R swig/apps
- python repo_utils/sgl_lint.py -v -R swig/gpstk
dependencies: []
protected_term_lint:
stage: check
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py36:latest
script:
- '######'
- '# This job checks all files for protected terms in files modified since the branch split from default.'
- '######'
- conda activate py36
- git clone --depth 1 https://${CI_USER}:${CI_TOKEN}@${REPO_HOST}/sgl/repo_utils.git
# We pull the default branch because the CI doesn't normally have any branches other than the one being tested.
- git fetch origin ${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH}
- bash repo_utils/dw_search/modified_file_check.sh ${CI_DEFAULT_BRANCH} $CI_COMMIT_SHA
dependencies: []
protected_history_lint:
stage: check
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py36:latest
script:
- '######'
- '# This job checks all files modified on this branch for sensitive terms.'
- '######'
- conda activate py36
- git clone --depth 1 https://${CI_USER}:${CI_TOKEN}@${REPO_HOST}/sgl/repo_utils.git
# We pull the default branch because the CI doesn't normally have any branches other than the one being tested.
- git fetch origin ${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH}
- bash repo_utils/dw_search/history_check.sh ${CI_DEFAULT_BRANCH} $CI_COMMIT_SHA
dependencies: []
# Runs the documentation generation
generate_documentation:
stage: check
needs: []
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
# Install GraphViz
- sudo apt-get install -y graphviz
# Call doxygen w/alternate target directory
- doxygen
# Allow failures here to prevent blocking the rest of the pipeline.
allow_failure: true
artifacts:
paths:
- docs/
build_debian_7:
stage: build
needs: []
extends: .normal_job
tags:
- docker-executor
# Not all docker runners support debian 7
- deb7-support
image: $DOCKER_REGISTRY/debian7_fai_ish
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_EXT=ON -DTEST_SWITCH=ON ../
- make all -j 4
artifacts:
paths:
- build/
allow_failure: true
build_debian_8:
stage: build
needs: []
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian8_fai_ish
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_EXT=ON -DTEST_SWITCH=ON ../
- make all -j 4
artifacts:
paths:
- build/
build_debian_9:
stage: build
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=install $CMAKE_ARG_DEFAULT
- make all -j 4
artifacts:
paths:
- build/
build_debian_10:
stage: build
needs: []
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian10_fai_ish
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=install $CMAKE_ARG_DEFAULT
- make all -j 4
artifacts:
paths:
- build/
build_conda_py27:
stage: build
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py27
script:
- conda activate py27
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=install $CMAKE_ARG_DEFAULT
- make all -j 4
artifacts:
paths:
- build/
build_conda_py36:
stage: build
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py36
script:
- conda activate py36
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=install $CMAKE_ARG_DEFAULT
- make all -j 4
artifacts:
paths:
- build/
build_redhat:
stage: build
needs: []
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_EXT=ON -DTEST_SWITCH=ON ../
- make all -j 4
artifacts:
paths:
- build/
build_redhat_8:
stage: build
needs: []
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- mkdir build
- cd build
- export gpstk=`pwd`/install
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=install $CMAKE_ARG_DEFAULT
- make all -j 4
artifacts:
paths:
- build/
build_windows:
stage: build
needs: []
extends: .normal_job
tags:
- win10
script:
# incremental builds
# - if not exist "%CI_PROJECT_DIR%/build/" mkdir "%CI_PROJECT_DIR%/build"
# non-incremental builds
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_EXT=ON -DBUILD_PYTHON=OFF -DTEST_SWITCH=ON -G "Visual Studio 14 2015 Win64" ../
- cmake --build . --config Release
artifacts:
paths:
- build/
# used for incremental builds
# cache:
# paths:
# - build/
timeout: 30m
# Temporarily allow failures as Windows Runner issues are resolved
allow_failure: true
# Test Stage
# Runs all tests of GPSTK for each platform
test_debian_7:
stage: test
needs: [build_debian_7]
extends: .normal_job
tags:
- docker-executor
# Not all docker runners support debian 7
- deb7-support
image: $DOCKER_REGISTRY/debian7_fai_ish
script:
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
dependencies:
- build_debian_7
# Allowing failure since this is unlikely to be fixed before we deprecate debian-7
allow_failure: true
test_debian_8:
stage: test
needs: [build_debian_8]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian8_fai_ish
script:
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
dependencies:
- build_debian_8
test_debian_9:
stage: test
needs: [build_debian_9]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
- build/swig/
dependencies:
- build_debian_9
test_debian_10:
stage: test
needs: [build_debian_10]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian10_fai_ish
script:
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
- build/swig/
dependencies:
- build_debian_10
test_conda_py27:
stage: test
needs: [build_conda_py27]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py27
script:
- conda activate py27
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
- build/swig/
dependencies:
- build_conda_py27
test_conda_py36:
stage: test
needs: [build_conda_py36]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py36
script:
- conda activate py36
- cd build
- ctest -j 4
- touch $CI_PROJECT_DIR/success
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
- build/swig/
dependencies:
- build_conda_py36
test_redhat:
stage: test
needs: [build_redhat]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- cd build
- ctest -j 4
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
dependencies:
- build_redhat
test_redhat_8:
stage: test
needs: [build_redhat_8]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- cd build
- ctest -j 4
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
dependencies:
- build_redhat_8
test_windows:
stage: test
needs: [build_windows]
extends: .normal_job
tags:
- win10
script:
- cd build
- cmake --build . --target RUN_TESTS --config Release
artifacts:
when: on_failure
paths:
- build/Testing/Temporary/
- build/swig/
dependencies:
- build_windows
allow_failure: true
timeout: 5m
# User_Install Stage
# Tests user install of GPSTk on each platform, saves artifacts for downstream builds.
user_install_debian_9:
stage: install
needs: [build_debian_9]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- cd build
- export gpstk=`pwd`/install
- export PYTHONPATH=$gpstk/lib/python2.7/site-packages
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=$gpstk ../
- make install -j 4
- python -c "import gpstk"
artifacts:
paths:
- build/install
dependencies:
- build_debian_9
user_install_redhat:
stage: install
needs: [build_redhat]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- cd build
- export gpstk=`pwd`/install
- cmake -DCMAKE_INSTALL_PREFIX=$gpstk ../
- make install -j 4
artifacts:
paths:
- build/install
dependencies:
- build_redhat
user_install_redhat_8:
stage: install
needs: [build_redhat_8]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- cd build
- export gpstk=`pwd`/install
- cmake -DCMAKE_INSTALL_PREFIX=$gpstk ../
- make install -j 4
artifacts:
paths:
- build/install
dependencies:
- build_redhat_8
user_install_windows:
stage: install
needs: [build_windows]
extends: .normal_job
tags:
- win10
script:
- cd build
- cmake --build . --config Release --target install
dependencies:
- build_windows
# Temporarily allow failures as Windows Runner issues are resolved
allow_failure: true
timeout: 10m
# System Stage
# Tests install of GPSTk on each platform, saves artifacts for downstream builds.
system_install_debian_9:
stage: install
needs: [build_debian_9]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- cd build
- export gpstk=/usr/local
- export PYTHONPATH=$gpstk/lib/python2.7/site-packages
- cmake -DPYTHON_INSTALL_PREFIX=$gpstk -DCMAKE_INSTALL_PREFIX=$gpstk ../
- sudo make install -j 4
- python -c "import gpstk"
dependencies:
- build_debian_9
system_install_redhat:
stage: install
needs: [build_redhat]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- cd build
- export gpstk=/usr/local
- cmake -DCMAKE_INSTALL_PREFIX=$gpstk ../
- sudo make install -j 4
dependencies:
- build_redhat
system_install_redhat_8:
stage: install
needs: [build_redhat_8]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- cd build
- export gpstk=/usr/local
- cmake -DCMAKE_INSTALL_PREFIX=$gpstk ../
- sudo make install -j 4
dependencies:
- build_redhat_8
# Package Stage
# Tests packaging of GPSTk on all platforms
package_debian_8:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian8_fai_ish
script:
- rm -rf ../*.deb
# Mark the debian log so that this package is a backport.
# Use the most recent Maintainer as current maintainer.
- export DEBEMAIL=$(dpkg-parsechangelog -S Maintainer)
- dch --bpo "No Changes"
- dpkg-buildpackage -us -uc -d --changes-option="-DDistribution=jessie-sgl"
- mkdir debs
- mv ../*.deb debs
- mv ../*.changes debs
- mv ../*.dsc debs
- mv ../*.git debs
artifacts:
paths:
- debs/
dependencies:
- build_debian_8
package_debian_9:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- rm -rf ../*.deb
- dpkg-buildpackage --build-profiles=pkg_python -us -uc -d --changes-option="-DDistribution=stretch-sgl"
- mkdir debs
- mv ../*.deb debs
- mv ../*.changes debs
- mv ../*.dsc debs
- mv ../*.git debs
- mv ../*.buildinfo debs
artifacts:
paths:
- debs/
dependencies:
- build_debian_9
package_debian_10:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian10_fai_ish
script:
- rm -rf ../*.deb
# Mark the debian log so that this package is a backport.
# Use the most recent Maintainer as current maintainer.
- export DEBEMAIL=$(dpkg-parsechangelog -S Maintainer)
- dch --bpo "No Changes"
- dpkg-buildpackage --build-profiles=pkg_python -us -uc -d --changes-option="-DDistribution=buster-sgl"
- mkdir debs
- mv ../*.deb debs
- mv ../*.changes debs
- mv ../*.dsc debs
- mv ../*.git debs
- mv ../*.buildinfo debs
artifacts:
paths:
- debs/
dependencies:
- build_debian_10
package_conda:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/deb9_conda_py36
script:
- conda activate conda_builder
- export GIT_COMMIT=$CI_COMMIT_REF_NAME
# Build Conda Py36 package
- conda-build conda_recipe_py36
# Build Conda Py27 package
- conda-build conda_recipe
# Copy files to local directory for archiving.
- mkdir -p conda-bld
- cp -r $CONDA_PREFIX/conda-bld/* conda-bld/
# Don't archive the cache files.
- rm -r conda-bld/linux-64/.cache
artifacts:
paths:
- conda-bld/linux-64/
dependencies: []
package_redhat:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- bash rpm_files/setup_dirs.sh
- git archive --prefix gpstk-master/ -o rpm_files/SOURCES/gpstk-master.tar.gz HEAD
- pushd rpm_files
- rpmbuild --define "_topdir ${PWD}" --define "debug_package %{nil}" -ba SPECS/gpstk.spec
artifacts:
paths:
- rpm_files/RPMS/x86_64/gpstk-*
- rpm_files/SRPMS/gpstk-*
dependencies: []
package_redhat_8:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- bash rpm_files/setup_dirs.sh
- git archive --prefix gpstk-master/ -o rpm_files/SOURCES/gpstk-master.tar.gz HEAD
- pushd rpm_files
- rpmbuild --define "_topdir ${PWD}" --define "debug_package %{nil}" --define "_build_id_links none" -ba SPECS/gpstk.spec
artifacts:
paths:
- rpm_files/RPMS/x86_64/gpstk-*
- rpm_files/SRPMS/gpstk-*
dependencies: []
package_redhat_8_py36:
stage: package
needs: []
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- bash rpm_files/setup_dirs.sh
- git archive --prefix python3-gpstk-master/ -o rpm_files/SOURCES/python3-gpstk-master.tar.gz HEAD
- pushd rpm_files
- rpmbuild --define "_topdir ${PWD}" --define "debug_package %{nil}" --define "_build_id_links none" -ba SPECS/gpstk_py36.spec
artifacts:
paths:
- rpm_files/RPMS/x86_64/python3-gpstk-*
- rpm_files/SRPMS/python3-gpstk-*
dependencies: []
# Deploy Stage
# Tests install of GPSTk package on each platform, saves artifacts for downstream builds.
deploy_debian_8:
stage: deploy
needs: [package_debian_8]
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian8_fai_ish
script:
- cd debs
- sudo dpkg -i ./*.deb
- timeconvert
dependencies:
- package_debian_8
deploy_debian_9:
stage: deploy
needs: [package_debian_9]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- cd debs
- sudo apt-get -y install ./*.deb
- python -c "import gpstk"
- timeconvert
dependencies:
- package_debian_9
deploy_debian_10:
stage: deploy
needs: [package_debian_10]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian10_fai_ish
script:
- cd debs
- sudo apt-get -y install ./*.deb
- python -c "import gpstk"
- timeconvert
dependencies:
- package_debian_10
deploy_redhat:
stage: deploy
needs: [package_redhat]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- cd rpm_files/RPMS/x86_64/
- sudo yum install gpstk-*.rpm -y
- timeconvert
dependencies:
- package_redhat
deploy_redhat_8:
stage: deploy
needs: [package_redhat_8]
extends: .big_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- cd rpm_files/RPMS/x86_64/
- sudo yum install gpstk-*.rpm -y
- timeconvert
dependencies:
- package_redhat_8
deploy_redhat_py36:
stage: deploy
needs: [package_redhat_8, package_redhat_8_py36]
extends: .package_build
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos8_sgl
script:
- cd rpm_files/RPMS/x86_64/
- sudo yum install gpstk-*.rpm -y
- sudo yum install python3-gpstk-*.rpm -y
- python3 -c "import gpstk"
- timeconvert
dependencies:
- package_redhat_8_py36
- package_redhat_8
# package_windows:
# stage: package
# tags:
# - win10
# script:
# - cd build
# - cpack -C Release
# dependencies:
# - build_windows
# Temporarily allow failures as Windows Runner issues are resolved
sgltk_debian:
stage: downstream
needs: [user_install_debian_9]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/debian9_fai_ish
script:
- cd build
- git clone -b $SGLTK_BRANCH https://${CI_USER}:${CI_TOKEN}@${REPO_HOST}/sgl/sgltk.git
- export gpstk=`pwd`/install
- export LD_LIBRARY_PATH=$gpstk/lib:$LD_LIBRARY_PATH
- cd sgltk
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=$gpstk -DBUILD_PYTHON=ON -DTEST_SWITCH=ON ../
- make all -j 4
dependencies:
- user_install_debian_9
sgltk_redhat:
stage: downstream
needs: [user_install_redhat]
extends: .normal_job
tags:
- docker-executor
image: $DOCKER_REGISTRY/centos7_sgl
script:
- cd build
- git clone -b $SGLTK_BRANCH https://${CI_USER}:${CI_TOKEN}@${REPO_HOST}/sgl/sgltk.git
- export gpstk=`pwd`/install
- export LD_LIBRARY_PATH=$gpstk/lib:$LD_LIBRARY_PATH
- cd sgltk
- mkdir build
- cd build
- cmake -DBUILD_PYTHON=OFF -DCMAKE_PREFIX_PATH=$gpstk -DTEST_SWITCH=ON ../
- make all -j 4
dependencies:
- user_install_redhat