forked from sys-bio/roadrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
1114 lines (1055 loc) · 49 KB
/
azure-pipelines.yml
File metadata and controls
1114 lines (1055 loc) · 49 KB
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
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(Date:yyyyMMdd)$(Rev:.r)
# specific branch build
trigger:
branches:
include:
- develop
- release
variables:
SOURCE_DIR: '$(System.DefaultWorkingDirectory)' # eg /home/vsts/work/1/s
BUILD_DIR: '$(SOURCE_DIR)/build'
INSTALL_DIR: '$(SOURCE_DIR)/roadrunner-$(Agent.OS)'
LLVM_INSTALL_PREFIX: '$(SOURCE_DIR)/llvm' # e.g./home/vsts/work/1
DEPS_INSTALL_PREFIX: '$(SOURCE_DIR)/libroadrunner-deps' # e.g./home/vsts/work/1
SWIG_SOURCE_DIR: '$(SOURCE_DIR)/swig'
SWIG_INSTALL_PREFIX: '$(SWIG_SOURCE_DIR)/install-azure'
SWIG_EXECUTABLE: '$(SWIG_INSTALL_PREFIX)/bin/swig'
stages:
########################################################################
# MacOS Build
#
- stage: MacBuildRoadrunnerCpp
dependsOn: []
jobs:
- job: MacBuildRoadrunnerCpp
timeoutInMinutes: "0"
displayName: MacBuildRoadrunnerCpp
continueOnError: "false"
pool:
vmImage: 'macOS-10.15'
strategy:
matrix:
64-bit Mac Release:
BuildType: Release
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-clang13-universal-binaries-rel.zip'
64-bit Mac Debug:
BuildType: Debug
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-clang13-universal-binaries-rel.zip'
variables:
LLVM_CACHE: 'false'
PythonName: 'py39'
LLVM_CONFIG_EXECUTABLE : '$(LLVM_INSTALL_PREFIX)/bin/llvm-config'
MinicondaRoot : '/usr/local/miniconda'
PythonRoot: '$(MinicondaRoot)/envs/$(PythonName)'
PythonLibDir: '$(PythonRoot)/lib'
PythonExecutable: '$(PythonRoot)/bin/python'
CondaExecutable: '$(MinicondaRoot)/condabin/conda'
PipExecutable: '$(PythonRoot)/bin/pip'
steps:
- checkout: self
submodules: recursive
- script: |
echo "SOURCE_DIR $(SOURCE_DIR)"
echo "BUILD_DIR $(BUILD_DIR)"
echo "INSTALL_DIR $(INSTALL_DIR)"
echo "LLVM_INSTALL_PREFIX $(LLVM_INSTALL_PREFIX)"
echo "DEPS_INSTALL_PREFIX $(DEPS_INSTALL_PREFIX)"
echo "Build.DefinitionName $(Build.DefinitionName)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "Agent.OS $(Agent.OS)"
echo "System.AccessToken $(System.AccessToken)"
echo "System.CollectionId $(System.CollectionId)"
echo "System.CollectionUri $(System.CollectionUri)"
echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "System.HostType $(System.HostType)"
echo "System.JobAttempt $(System.JobAttempt)"
echo "System.JobDisplayName $(System.JobDisplayName)"
echo "System.JobId $(System.JobId)"
echo "System.JobName $(System.JobName)"
echo "System.PhaseAttempt $(System.PhaseAttempt)"
echo "System.PhaseDisplayName $(System.PhaseDisplayName)"
echo "System.PhaseName $(System.PhaseName)"
echo "System.StageAttempt $(System.StageAttempt)"
echo "System.StageDisplayName $(System.StageDisplayName)"
echo "System.StageName $(System.StageName)"
echo "System.PullRequest.IsFork $(System.PullRequest.IsFork)"
echo "System.PullRequest.PullRequestId $(System.PullRequest.PullRequestId)"
echo "System.PullRequest.PullRequestNumber $(System.PullRequest.PullRequestNumber)"
echo "System.PullRequest.SourceBranch $(System.PullRequest.SourceBranch)"
echo "System.PullRequest.SourceRepositoryURI $(System.PullRequest.SourceRepositoryURI)"
echo "System.PullRequest.TargetBranch $(System.PullRequest.TargetBranch)"
echo "System.TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri)"
echo "System.TeamProject $(System.TeamProject)"
echo "System.TeamProjectId $(System.TeamProjectId)"
echo "TF_BUILD $(TF_BUILD)"
displayName: Print Variables
- script: |
mkdir $(DEPS_INSTALL_PREFIX)
displayName: Make Directories
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
# We need to take ownership if we want to update conda or install packages globally
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- script: |
echo "cd to source dir: $(SOURCE_DIR)"
cd $(SOURCE_DIR)
echo "ls"
ls
echo "which conda"
which conda
echo "cd miniconda root: $(MinicondaRoot)"
cd $(MinicondaRoot)
echo "ls"
ls
$(CondaExecutable) create --quiet --yes --name $(PythonName) python=$(PythonVersion)
displayName: InstallCondaEnv
- script: |
$(PipExecutable) install requests
$(PythonExecutable) ./.azurepipelines/getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)
echo "give execute permissions to llvm-config using chmod 777 *"
cd $(LLVM_INSTALL_PREFIX)/bin
chmod 777 llvm-config
displayName: "Get LLVM"
# condition: ne(variables.LLVM_CACHE, 'true')
- task: DownloadPipelineArtifact@2
# In this task we go and grab the build artefacts from
# the libroadrunner-dependencies package
inputs:
source: 'specific'
project: 'libroadrunner-deps'
# pipeline is found in the url when looking at azure in browser.
# for example, it looks like this:
# - https://dev.azure.com/TheRoadrunnerProject/libroadrunner-deps/_build?definitionId=9
pipeline: 9
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/release'
artifact: libroadrunner-deps-$(Agent.OS)-$(BuildType)
path: $(DEPS_INSTALL_PREFIX)
displayName: Download libroadrunner-deps install artifacts
- script: |
echo "$(DEPS_INSTALL_PREFIX)"
echo "cd to $(DEPS_INSTALL_PREFIX)"
cd $(DEPS_INSTALL_PREFIX)
echo "ls: "
ls
echo "moving contents of $(DEPS_INSTALL_PREFIX)/install to $(DEPS_INSTALL_PREFIX)"
mv $(DEPS_INSTALL_PREFIX)/install-azure/$(BuildType)/** .
rm -r $(DEPS_INSTALL_PREFIX)/install-azure
ls
displayName: Move Dependencies
- script: |
echo "Configuring roadrunner"
echo "mkdir build directory: $(BUILD_DIR)"
mkdir $(BUILD_DIR)
echo "CD to build dir: $(BUILD_DIR)"
cd $(BUILD_DIR)
cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=$(BuildType) -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
displayName: Run CMake Configure Command
- script: |
echo "less -N $(BUILD_DIR)/source/CMakeFiles/roadrunner.dir/build.make"
less -N "$(BUILD_DIR)/source/CMakeFiles/roadrunner.dir/build.make"
echo "Building roadrunner"
echo "cd to build dir"
cd $(BUILD_DIR)
cmake --build . --target install --config $(BuildType) -j 12
displayName: Run CMake Build Command
- script: |
echo "cd to build dir $(BUILD_DIR)"
cd $(BUILD_DIR)
if [ "$(BuildType)" == "Release" ]; then
ctest --verbose --extra-verbose --progress
fi
displayName: RunCTest
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/**'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: Copy to Staging Area
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-MacOS10.15-$(BuildType)
displayName: Publish
- stage: MacBuildRoadrunnerPython
dependsOn: []
jobs:
- job: MacBuildRoadrunnerPython
timeoutInMinutes: "0"
displayName: MacBuildRoadrunnerPython
continueOnError: "false"
pool:
vmImage: 'macOS-10.15'
strategy:
matrix:
py38:
PythonVersion: 3.8
PythonName: py38
py39:
PythonVersion: 3.9
PythonName: py39
py310:
PythonVersion: 3.10
PythonName: py310
variables:
MinicondaRoot : '/usr/local/miniconda'
PythonRoot: '$(MinicondaRoot)/envs/$(PythonName)'
PythonLibDir: '$(PythonRoot)/lib'
PythonExecutable: '$(PythonRoot)/bin/python'
CondaExecutable: '$(MinicondaRoot)/condabin/conda'
PipExecutable: '$(PythonRoot)/bin/pip'
SWIG_CACHE: 'false'
MINICONDA_CACHE: 'false'
LLVM_CACHE: 'false'
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-clang13-universal-binaries-rel.zip'
steps:
- checkout: self
submodules: recursive
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
# We need to take ownership if we want to update conda or install packages globally
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- script: |
echo "cd to source dir: $(SOURCE_DIR)"
cd $(SOURCE_DIR)
echo "ls"
ls
echo "which conda"
which conda
echo "cd miniconda root: $(MinicondaRoot)"
cd $(MinicondaRoot)
echo "ls"
ls
$(CondaExecutable) create --quiet --yes --name $(PythonName) python=$(PythonVersion)
echo "running: $(PipExecutable) install -r $(SOURCE_DIR)/test-requirements.txt"
$(PipExecutable) install -r $(SOURCE_DIR)/test-requirements.txt
displayName: InstallCondaEnv
- script: |
which conda
which python
echo "PythonVersion $(PythonVersion)"
echo "PythonName $(PythonName)"
echo "MinicondaRoot $(MinicondaRoot)"
echo "PythonRoot $(PythonRoot)"
echo "PythonLibDir $(PythonLibDir)"
echo "CondaExecutable $(CondaExecutable)"
displayName: PrintPythonVariables
- script: |
mkdir $(DEPS_INSTALL_PREFIX)
displayName: Make Directories
- script: |
$(PipExecutable) install requests
$(PythonExecutable) ./.azurepipelines/getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)
echo "give execute permissions to llvm-config using chmod 777 *"
cd $(LLVM_INSTALL_PREFIX)/bin
chmod 777 llvm-config
displayName: "Get LLVM"
# condition: ne(variables.LLVM_CACHE, 'true')
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: 'libroadrunner-deps'
pipeline: 9
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/release'
artifact: libroadrunner-deps-$(Agent.OS)-Release
path: $(DEPS_INSTALL_PREFIX)
displayName: Download libroadrunner-deps install artifacts
- script: |
echo "$(DEPS_INSTALL_PREFIX)"
echo "cd to $(DEPS_INSTALL_PREFIX)"
cd $(DEPS_INSTALL_PREFIX)
echo "ls: "
ls
echo "moving contents of $(DEPS_INSTALL_PREFIX)/install to $(DEPS_INSTALL_PREFIX)"
mv $(DEPS_INSTALL_PREFIX)/install-azure/Release/** .
rm -r $(DEPS_INSTALL_PREFIX)/install-azure
ls
displayName: Move Dependencies
- task: Cache@2
inputs:
key: "Swig | $(Agent.OS)"
path: $(SWIG_INSTALL_PREFIX)
cacheHitVar: SWIG_CACHE
displayName: Cache Swig-4.0.2
- script: |
echo "installing pcre"
sudo apt install -y libpcre3 libpcre3-dev
mkdir -p $(SWIG_SOURCE_DIR)
echo "cd to swig source dir: $(SWIG_SOURCE_DIR)"
cd $(SWIG_SOURCE_DIR)
echo "ls"
ls -lh
wget -q https://sourceforge.net/projects/swig/files/swig/swig-4.0.2/swig-4.0.2.tar.gz $(SWIG_SOURCE_DIR)
tar -xf swig-4.0.2.tar.gz
ls -lh
echo "Copying swig content from swig-4.0.2 to SWIG_SOURCE_DIR"
mv swig-4.0.2/** $(SWIG_SOURCE_DIR)
echo "ls"
ls -lh
echo "ls in swig source dir $(SWIG_SOURCE_DIR)"
ls -lh
./configure --prefix=$(SWIG_INSTALL_PREFIX)
make -j 12
make install
echo "ls in swig source dir $(SWIG_SOURCE_DIR)"
ls
echo "cd to swig install dir: $(SWIG_INSTALL_PREFIX)"
cd $(SWIG_INSTALL_PREFIX)
echo "ls from SWIG_INSTALL_PREFIX: $(SWIG_INSTALL_PREFIX)"
ls
if [ ! -f "$(SWIG_EXECUTABLE)" ]; then
echo "did not locate swig executable, exiting"
exit
fi
displayName: Install Swig
condition: ne(variables.SWIG_CACHE, 'true')
- script: |
mkdir -p $(SOURCE_DIR)
mkdir -p $(BUILD_DIR)
mkdir -p $(INSTALL_DIR)
displayName: Make directories
- script: |
echo "cd to source dir: $(SOURCE_DIR)"
cd $(SOURCE_DIR)
echo "ls"
ls
echo "Variable PythonRoot set to $(PythonRoot)"
echo "Checking to see whether I can CD to PythonRoot"
cd $(PythonRoot)
echo "cd to build dir $(BUILD_DIR)"
cd $(BUILD_DIR)
ls
export LD_LIBRARY_PATH=$(PythonLibDir)
cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DPython_ROOT_DIR=$(PythonRoot) -DSWIG_EXECUTABLE=$(SWIG_EXECUTABLE) -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
cmake --build . --target install --config Release -j 12
displayName: BuildRoadrunnerWithPython
- script: |
echo "LD_LIBRARY_PATH $LD_LIBRARY_PATH"
export LD_LIBRARY_PATH=$(PythonLibDir)
echo "cd to isntall dir: $(INSTALL_DIR)"
cd $(INSTALL_DIR)
echo "ls in install dir"
ls
#$(PythonExecutable) site-packages/roadrunner/testing/__main__.py
echo "Switching to build dir: $(BUILD_DIR)"
cd $(BUILD_DIR)
echo "ctest --output-on-failure --verbose --extra-verbose --tests-regex python_tests*"
ctest --output-on-failure --verbose --extra-verbose --tests-regex python_tests*
displayName: RunPythonTests
- script: |
# todo workout whether the top few lines are needed now I'm using $(PythonExecutable)
#eval "$(conda shell.bash hook)"
#source activate $(PythonName)
#echo "which python: $(which python)"
#echo "which conda: $(which conda)"
#python_exe="$(which python)"
echo "cd to isntall dir: $(INSTALL_DIR)"
cd $(INSTALL_DIR)
echo "ls in install dir"
ls
echo "$(PythonExecutable) setup.py bdist_wheel"
$(PythonExecutable) setup.py bdist_wheel
echo "$(PythonExecutable) setup_rrplugins.py bdist_wheel"
$(PythonExecutable) setup_rrplugins.py bdist_wheel
displayName: Generate pip wheel
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/**'
targetFolder: $(Build.ArtifactStagingDirectory)/roadrunner-MacOS10.15-$(PythonName)
displayName: Copy Install Tree to Staging Area
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/dist/**'
targetFolder: $(Build.ArtifactStagingDirectory)/pip-wheels
displayName: Copy Pip Wheels to Staging Area
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-MacOS10.15-$(PythonName)
displayName: Publish Pip Wheels Artifacts
########################################################################
# Windows Build
#
- stage: WindowsBuildRoadrunnerCpp
dependsOn: []
jobs:
- job: WindowsBuildRoadrunnerCpp
timeoutInMinutes: "0"
displayName: WindowsBuildRoadrunnerCpp
continueOnError: "false"
pool:
vmImage: 'windows-2019'
strategy:
matrix:
64-bit Windows Release:
BuildType: Release
BuildTests: ON
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-msvc2022-x64-rel.zip'
64-bit Windows Debug:
BuildType: Debug
BuildTests: OFF
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-msvc2022-x64-dbg.zip'
variables:
LLVM_CACHE: 'false'
MinicondaRoot : 'C:\Miniconda'
PythonName: 'py39'
PythonVersion: '3.9'
PythonRoot: '$(MinicondaRoot)\envs\$(PythonName)'
PythonLibDir: '$(PythonRoot)\Lib'
PythonScriptsDir: '$(PythonRoot)\Scripts'
PythonExecutable: '$(PythonRoot)\python.exe'
PipExecutable: '$(PythonScriptsDir)\pip.exe'
steps:
- checkout: self
submodules: recursive
- powershell: |
echo "SOURCE_DIR $(SOURCE_DIR)"
echo "BUILD_DIR $(BUILD_DIR)"
echo "INSTALL_DIR $(INSTALL_DIR)"
echo "LLVM_INSTALL_PREFIX $(LLVM_INSTALL_PREFIX)"
echo "DEPS_INSTALL_PREFIX $(DEPS_INSTALL_PREFIX)"
echo "Build.DefinitionName $(Build.DefinitionName)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "Agent.OS $(Agent.OS)"
echo "System.AccessToken $(System.AccessToken)"
echo "System.CollectionId $(System.CollectionId)"
echo "System.CollectionUri $(System.CollectionUri)"
echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "System.HostType $(System.HostType)"
echo "System.JobAttempt $(System.JobAttempt)"
echo "System.JobDisplayName $(System.JobDisplayName)"
echo "System.JobId $(System.JobId)"
echo "System.JobName $(System.JobName)"
echo "System.PhaseAttempt $(System.PhaseAttempt)"
echo "System.PhaseDisplayName $(System.PhaseDisplayName)"
echo "System.PhaseName $(System.PhaseName)"
echo "System.StageAttempt $(System.StageAttempt)"
echo "System.StageDisplayName $(System.StageDisplayName)"
echo "System.StageName $(System.StageName)"
echo "System.TeamProject $(System.TeamProject)"
echo "System.TeamProjectId $(System.TeamProjectId)"
echo "TF_BUILD $(TF_BUILD)"
displayName: Print Variables
- powershell: |
mkdir $(LLVM_INSTALL_PREFIX)
mkdir $(DEPS_INSTALL_PREFIX)
displayName: Make Directories
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- powershell: |
where.exe conda
where.exe python
echo "PythonVersion $(PythonVersion)"
echo "PythonName $(PythonName)"
echo "MinicondaRoot $(MinicondaRoot)"
echo "PythonRoot $(PythonRoot)"
echo "PythonLibDir $(PythonLibDir)"
displayName: PrintPythonVariables
# - task: Cache@2
# inputs:
# key: "llvm | $(Agent.OS)"
# path: $(LLVM_INSTALL_PREFIX)
# cacheHitVar: LLVM_CACHE
- script: |
echo "Creating new conda environment"
conda create --quiet --yes --name $(PythonName) python=$(PythonVersion)
echo "pip upgrade:"
$(PipExecutable) install --upgrade pip
echo "pip help:"
$(PipExecutable) install --help
echo "$(PipExecutable) install requests"
$(PipExecutable) install requests
echo "$(PipExecutable) install numpy"
$(PipExecutable) install numpy
displayName: "Setup conda and get NumPy"
- script: |
echo "$(PythonExecutable) .\.azurepipelines\getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)"
$(PythonExecutable) .\.azurepipelines\getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)
displayName: "Get LLVM"
condition: ne(variables.LLVM_CACHE, 'true')
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: 'libroadrunner-deps'
pipeline: 9
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/release'
artifact: libroadrunner-deps-$(Agent.OS)-$(BuildType)
path: $(DEPS_INSTALL_PREFIX)
displayName: Download libroadrunner-deps install artifacts
- powershell: |
echo "$(DEPS_INSTALL_PREFIX)"
echo "cd to $(DEPS_INSTALL_PREFIX)"
cd $(DEPS_INSTALL_PREFIX)
echo "ls: "
ls
echo "moving contents of $(DEPS_INSTALL_PREFIX)/install to $(DEPS_INSTALL_PREFIX)"
mv $(DEPS_INSTALL_PREFIX)/install-azure/$(BuildType)/** .
rm -R $(DEPS_INSTALL_PREFIX)/install-azure
ls
displayName: Move Dependencies
- powershell: |
echo "Configuring roadrunner"
echo "mkdir build directory: $(BUILD_DIR)"
mkdir $(BUILD_DIR)
echo "CD to build dir: $(BUILD_DIR)"
cd $(BUILD_DIR)
cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=$(BuildTests) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=$(BuildType) ..
displayName: Run CMake Configure Command
- powershell: |
echo "Building roadrunner"
echo "cd to build dir"
cd $(BUILD_DIR)
cmake --build . --target install --config $(BuildType) -j 12
displayName: Run CMake Build Command
- powershell: |
echo "cd to build dir $(BUILD_DIR)"
cd $(BUILD_DIR)
if ('$(BuildType)' -eq "Release"){
ctest --verbose --extra-verbose --progress
}
displayName: RunCTest
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/**'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: Copy to Staging Area
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-$(Agent.OS)-$(BuildType)
displayName: Publish
- stage: WindowsBuildRoadrunnerPython
dependsOn: []
jobs:
- job: WindowsBuildRoadrunnerPython
timeoutInMinutes: "0"
displayName: WindowsBuildRoadrunnerPython
continueOnError: "false"
pool:
vmImage: 'windows-2019'
strategy:
matrix:
py38:
PythonVersion: 3.8
PythonName: py38
py39:
PythonVersion: 3.9
PythonName: py39
py310:
PythonVersion: 3.10
PythonName: py310
variables:
MinicondaRoot : 'C:\Miniconda'
PythonRoot: '$(MinicondaRoot)\envs\$(PythonName)'
PythonLibDir: '$(PythonRoot)\Lib'
PythonScriptsDir: '$(PythonRoot)\Scripts'
PythonExecutable: '$(PythonRoot)\python.exe'
PipExecutable: '$(PythonScriptsDir)\pip.exe'
# override the variable for swigwin since swig exe is in different place
# on windows build compared to mac and linux
SWIG_EXECUTABLE: '$(SWIG_INSTALL_PREFIX)/swig.exe'
SWIG_CACHE: 'false'
LLVM_CACHE: 'false'
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm-13.x-win32-rel.zip'
steps:
- checkout: self
submodules: recursive
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- powershell: |
where.exe conda
where.exe python
conda update conda -y
conda install numpy
conda --version
echo "PythonVersion $(PythonVersion)"
echo "PythonName $(PythonName)"
echo "MinicondaRoot $(MinicondaRoot)"
echo "PythonRoot $(PythonRoot)"
echo "PythonLibDir $(PythonLibDir)"
displayName: "Update conda and print vars"
- powershell: |
mkdir -p $(LLVM_INSTALL_PREFIX)
mkdir -p $(SWIG_INSTALL_PREFIX)
mkdir -p $(DEPS_INSTALL_PREFIX)
mkdir -p $(INSTALL_DIR)
mkdir -p $(BUILD_DIR)
displayName: Make Directories
- task: Cache@2
inputs:
key: "llvm | $(Agent.OS)"
path: $(LLVM_INSTALL_PREFIX)
cacheHitVar: LLVM_CACHE
- script: |
echo "Creating new conda environment"
conda create --quiet --yes --name $(PythonName) python=$(PythonVersion)
echo "pip help:"
$(PipExecutable) install --help
echo "pip install requests:"
$(PipExecutable) install requests
$(PipExecutable) install numpy
displayName: "Setup conda"
- script: |
$(PythonExecutable) ./.azurepipelines/getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)
displayName: "Get LLVM"
condition: ne(variables.LLVM_CACHE, 'true')
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: 'libroadrunner-deps'
pipeline: 9
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/release'
artifact: libroadrunner-deps-$(Agent.OS)-Release
path: $(DEPS_INSTALL_PREFIX)
displayName: Download libroadrunner-deps install artifacts
- powershell: |
echo "$(DEPS_INSTALL_PREFIX)"
echo "cd to $(DEPS_INSTALL_PREFIX)"
cd $(DEPS_INSTALL_PREFIX)
echo "ls: "
ls
echo "moving contents of $(DEPS_INSTALL_PREFIX)/install to $(DEPS_INSTALL_PREFIX)"
mv $(DEPS_INSTALL_PREFIX)/install-azure/Release/** .
rm -r $(DEPS_INSTALL_PREFIX)/install-azure
ls
displayName: Move Dependencies
- task: Cache@2
inputs:
key: "Swig | $(Agent.OS)"
path: $(SWIG_INSTALL_PREFIX)
cacheHitVar: SWIG_CACHE
displayName: Cache Swig-4.0.2
- powershell: |
echo "make swig source dir if not exists"
[System.IO.Directory]::CreateDirectory('$(SWIG_SOURCE_DIR)')
echo "cd to swig source dir: $(SWIG_SOURCE_DIR)"
cd $(SWIG_SOURCE_DIR)
echo "ls"
ls
echo "Invoke-WebRequest"
# note: default user agent does not follow sourceforge redirect.
Invoke-WebRequest -Uri https://downloads.sourceforge.net/project/swig/swigwin/swigwin-4.0.2/swigwin-4.0.2.zip -OutFile swigwin-4.0.2.zip -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox
echo "ls"
ls
echo "Expand-Archive"
Expand-Archive swigwin-4.0.2.zip -Destination $(SWIG_INSTALL_PREFIX)
echo "ls"
ls
echo "CD to swig install prefix $(SWIG_INSTALL_PREFIX)"
cd $(SWIG_INSTALL_PREFIX)
echo "ls"
ls
echo "cd swigwwin-4.0.2"
cd swigwin-4.0.2
echo " moving contents of swigwin-4.0.2 to .."
mv * ..
cd ..
rm -R swigwin-4.0.2
echo "ls"
ls
# Note: swig is already built when we download on windows.
displayName: Install Swig
# this condition ensures this task only gets executed when swig cache does not exist
# Note, this may cause a problem if we ever update swig. In this case change the value of the cache key
condition: ne(variables.SWIG_CACHE, 'true')
- powershell: |
echo "where.exe conda"
where.exe conda
echo "where.exe python"
where.exe python
echo "Variable PythonRoot set to $(PythonRoot)"
echo "cd to source dir: $(SOURCE_DIR)"
cd $(SOURCE_DIR)
echo "ls"
ls
echo "Creating new conda environment"
conda create --quiet --yes --name $(PythonName) python=$(PythonVersion)
echo "pip help:"
$(PipExecutable) install --help
echo "$(PipExecutable) install -q -r $(SOURCE_DIR)/test-requirements.txt and requirements.txt"
$(PipExecutable) install -q -r $(SOURCE_DIR)/test-requirements.txt
$(PipExecutable) install -q -r $(SOURCE_DIR)/requirements.txt
$ENV:PATH="$ENV:PATH;$(PythonScriptsDir)"
echo "cd to build dir $(BUILD_DIR)"
cd $(BUILD_DIR)
ls
echo "cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DPython_ROOT_DIR=$(PythonRoot) -DSWIG_EXECUTABLE=$(SWIG_EXECUTABLE) .."
cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DPython_ROOT_DIR=$(PythonRoot) -DSWIG_EXECUTABLE=$(SWIG_EXECUTABLE) ..
echo "cmake --build . --target install --config Release -j 12"
cmake --build . --target install --config Release -j 12
displayName: BuildRoadrunnerWithPython
- powershell: |
echo "cd to isntall dir: $(INSTALL_DIR)"
cd $(INSTALL_DIR)
echo "python exe $(PythonExecutable)"
echo "ls in install dir"
ls
#$(PythonExecutable) site-packages/roadrunner/testing/__main__.py
echo "Switching to build dir: $(BUILD_DIR)"
cd $(BUILD_DIR)
echo "ctest --output-on-failure --verbose --extra-verbose --tests-regex python_tests*"
ctest -C Release --output-on-failure --verbose --extra-verbose --tests-regex python_tests*
displayName: RunPythonTests
- powershell: |
echo "cd to isntall dir: $(INSTALL_DIR)"
cd $(INSTALL_DIR)
echo "ls in install dir"
ls
$(PythonExecutable) setup.py bdist_wheel
$(PythonExecutable) setup_rrplugins.py bdist_wheel
displayName: Generate pip wheel
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/**'
targetFolder: $(Build.ArtifactStagingDirectory)/roadrunner-Windows2019-$(PythonName)
displayName: Copy Install Tree to Staging Area
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/dist/**'
targetFolder: $(Build.ArtifactStagingDirectory)/pip-wheels
displayName: Copy Pip Wheels to Staging Area
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-Windows2019-$(PythonName)
displayName: Publish Pip Wheels Artifacts
########################################################################
# Ubuntu Build
#
- stage: UbuntuBuildRoadrunnerCpp
dependsOn: [ ]
jobs:
- job: UbuntuBuildRoadrunnerCpp
timeoutInMinutes: "0"
displayName: UbuntuBuildRoadrunnerCpp
continueOnError: "false"
pool:
vmImage: 'Ubuntu-18.04'
strategy:
matrix:
64-bit Linux Release:
BuildType: Release
BuildDocs: ON
64-bit Linux Debug:
BuildType: Debug
BuildDocs: OFF
variables:
MinicondaRoot : '/usr/share/miniconda'
PythonRoot: '$(MinicondaRoot)/envs/$(PythonName)'
PythonLibDir: '$(PythonRoot)/lib'
PythonExecutable: '$(PythonRoot)/bin/python'
PipExecutable: '$(PythonRoot)/bin/pip'
SphinxExecutable: '$(PythonRoot)/bin/sphinx-build'
PythonName: 'py39'
PythonVersion: '3.9'
LLVM_DOWNLOAD_LINK: 'https://github.com/sys-bio/llvm-13.x/releases/download/llvmorg-13.0.0/llvm13-ubuntu-gcc10-rel.tar.gz'
steps:
- checkout: self
submodules: recursive
# we cannot upload prebuilt binaries onto github for linux debug version because of github file size limits.
# therefore we do this build with Release llvm for both debug and release.
- script: |
echo "SOURCE_DIR $(SOURCE_DIR)"
echo "BUILD_DIR $(BUILD_DIR)"
echo "INSTALL_DIR $(INSTALL_DIR)"
echo "LLVM_INSTALL_PREFIX $(LLVM_INSTALL_PREFIX)"
echo "DEPS_INSTALL_PREFIX $(DEPS_INSTALL_PREFIX)"
echo "Build.DefinitionName $(Build.DefinitionName)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "Agent.OS $(Agent.OS)"
echo "System.AccessToken $(System.AccessToken)"
echo "System.CollectionId $(System.CollectionId)"
echo "System.CollectionUri $(System.CollectionUri)"
echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)"
echo "System.DefinitionId $(System.DefinitionId)"
echo "System.HostType $(System.HostType)"
echo "System.JobAttempt $(System.JobAttempt)"
echo "System.JobDisplayName $(System.JobDisplayName)"
echo "System.JobId $(System.JobId)"
echo "System.JobName $(System.JobName)"
echo "System.PhaseAttempt $(System.PhaseAttempt)"
echo "System.PhaseDisplayName $(System.PhaseDisplayName)"
echo "System.PhaseName $(System.PhaseName)"
echo "System.StageAttempt $(System.StageAttempt)"
echo "System.StageDisplayName $(System.StageDisplayName)"
echo "System.StageName $(System.StageName)"
echo "System.PullRequest.IsFork $(System.PullRequest.IsFork)"
echo "System.PullRequest.PullRequestId $(System.PullRequest.PullRequestId)"
echo "System.PullRequest.PullRequestNumber $(System.PullRequest.PullRequestNumber)"
echo "System.PullRequest.SourceBranch $(System.PullRequest.SourceBranch)"
echo "System.PullRequest.SourceRepositoryURI $(System.PullRequest.SourceRepositoryURI)"
echo "System.PullRequest.TargetBranch $(System.PullRequest.TargetBranch)"
echo "System.TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri)"
echo "System.TeamProject $(System.TeamProject)"
echo "System.TeamProjectId $(System.TeamProjectId)"
echo "TF_BUILD $(TF_BUILD)"
displayName: Print Variables
- script: |
mkdir $(LLVM_INSTALL_PREFIX)
mkdir $(DEPS_INSTALL_PREFIX)
displayName: Make Directories
- task: Cache@2
inputs:
key: "llvm | $(Agent.OS)"
path: $(LLVM_INSTALL_PREFIX)
cacheHitVar: LLVM_CACHE
displayName: Cache llvm
- script: |
echo "gcc $(gcc --version)"
echo "g++ $(g++ --version)"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-10 g++-10 doxygen dvipng texlive texlive-font-utils textlive-latex-extra
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 1
displayName: Install g++10 and doxygen
- script: |
eval "$(conda shell.bash hook)"
conda create -y --name $(PythonName) python=$(PythonVersion)
$(PipExecutable) install requests
displayName: "Install Python via conda"
- script: |
$(PythonExecutable) ./.azurepipelines/getLLVM.py $(LLVM_DOWNLOAD_LINK) $(LLVM_INSTALL_PREFIX)
echo "give execute permissions to llvm-config using chmod 777"
chmod 777 $(LLVM_INSTALL_PREFIX)/bin/llvm-config
displayName: "Get LLVM"
condition: ne(variables.LLVM_CACHE, 'true')
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: 'libroadrunner-deps'
pipeline: 9
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/release'
artifact: libroadrunner-deps-$(Agent.OS)-$(BuildType)
path: $(DEPS_INSTALL_PREFIX)
displayName: Download libroadrunner-deps install artifacts
- script: |
echo "$(DEPS_INSTALL_PREFIX)"
echo "cd to $(DEPS_INSTALL_PREFIX)"
cd $(DEPS_INSTALL_PREFIX)
echo "ls: "
ls
echo "moving contents of $(DEPS_INSTALL_PREFIX)/install to $(DEPS_INSTALL_PREFIX)"
mv $(DEPS_INSTALL_PREFIX)/install-azure/$(BuildType)/** .
rm -r $(DEPS_INSTALL_PREFIX)/install-azure
ls
displayName: Move Dependencies
- script: |
export CC=/usr/bin/gcc-10
export CXX=/usr/bin/g++-10
export C=/usr/bin/gcc-10
echo "Configuring roadrunner"
echo "mkdir build directory: $(BUILD_DIR)"
mkdir $(BUILD_DIR)
echo "CD to build dir: $(BUILD_DIR)"
cd $(BUILD_DIR)
cmake -DLLVM_INSTALL_PREFIX=$(LLVM_INSTALL_PREFIX) -DRR_DEPENDENCIES_INSTALL_PREFIX=$(DEPS_INSTALL_PREFIX) -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DBUILD_RR_PLUGINS=ON -DBUILD_RR_CAPI=ON -DCMAKE_BUILD_TYPE=$(BuildType) -DBUILD_DOCS=${BuildDocs} ..
displayName: Run CMake Configure Command
- script: |
export CC=/usr/bin/gcc-10
export CXX=/usr/bin/g++-10
export C=/usr/bin/gcc-10
echo "Building roadrunner"
echo "cd to build dir"
cd $(BUILD_DIR)
cmake --build . --target install --config $(BuildType) -j 12
displayName: Run CMake Build Command
- script: |
export CC=/usr/bin/gcc-10
export CXX=/usr/bin/g++-10
export C=/usr/bin/gcc-10
echo "cd to build dir $(BUILD_DIR)"
cd $(BUILD_DIR)
if [ "$(BuildType)" == "Release" ]; then
ctest --verbose --extra-verbose --progress
fi
displayName: RunCTest
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/**'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: Copy to Staging Area
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-$(Agent.OS)-$(BuildType)
displayName: Publish install
- script: |
rm -r $(Build.ArtifactStagingDirectory)/*
displayName: Clear staging area
condition: eq(variables.BuildType, 'Release')
- script: |
echo "cd to docs dir"
cd $(SOURCE_DIR)/docs/
echo "pip install dependencies"
$(PipExecutable) install -r requirements.txt
export SPHINXBUILD=$(SphinxExecutable)
echo "make html"
make html
echo "list build/html"
ls build/html
echo "move docs to installation"
cd
pwd
mkdir $(INSTALL_DIR)/docs
mv $(SOURCE_DIR)/docs/build/html '$(INSTALL_DIR)/docs/docs-build'
mv $(SOURCE_DIR)/docs/doxygen-output '$(INSTALL_DIR)/docs/doxygen-output'
ls '$(INSTALL_DIR)/docs'
displayName: Make Docs
condition: eq(variables.BuildType, 'Release')
- task: CopyFiles@2
inputs:
contents: '$(INSTALL_DIR)/docs/**'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: Copy docs to Staging Area
condition: eq(variables.BuildType, 'Release')
- publish: $(Build.ArtifactStagingDirectory)
artifact: roadrunner-docs
displayName: Publish docs
condition: eq(variables.BuildType, 'Release')
#########################################################################
# Many Linux Build
#
- stage: ManyLinux
displayName: ManyLinux2014
dependsOn: []
jobs:
- job:
strategy:
matrix:
py38:
PythonVersion: 3.8
PythonName: py38
py39:
PythonVersion: 3.9
PythonName: py39
py310:
PythonVersion: 3.10
PythonName: py310
pool:
vmImage: 'ubuntu-18.04'
container: sysbiouw/roadrunner-manylinux2014-base:latest
variables:
CCACHE_DIR: '$(Pipeline.Workspace)/ccache'
BUILD_DIRECTORY: '$(System.DefaultWorkingDirectory)/build'
SOURCE_DIRECTORY: '$(System.DefaultWorkingDirectory)'
INSTALL_DIRECTORY: '$(System.DefaultWorkingDirectory)/install-azure'
MinicondaRoot: '/Miniconda3'
PythonRoot: '$(MinicondaRoot)/envs/$(PythonName)'
CondaExecutable: '$(MinicondaRoot)/bin/conda'
PythonExecutable: '$(PythonRoot)/bin/python'
PythonLibDir: '$(PythonRoot)/lib'
PythonIncludeDir: '$(PythonRoot)/include'
PipExecutable: '$(PythonRoot)/bin/pip'
SwigExecutable: '/swig-4.0.2/install-swig-4.0.2/bin/swig'
steps:
- checkout: self
submodules: recursive
- script: |
echo "SOURCE_DIRECTORY $(SOURCE_DIRECTORY)"
if [ ! -d "$(SOURCE_DIRECTORY)" ]; then
echo "Can't find SOURCE_DIRECTORY at $(SOURCE_DIRECTORY)"
exit 1
fi
echo "MinicondaRoot $(MinicondaRoot)"
if [ ! -d "$(MinicondaRoot)" ]; then
echo "Can't find MinicondaRoot at $(MinicondaRoot)"
exit 1
fi
echo "PythonRoot $(PythonRoot)"
if [ ! -d "$(PythonRoot)" ]; then