-
Notifications
You must be signed in to change notification settings - Fork 119
/
syntax.yml
83 lines (72 loc) · 2.98 KB
/
syntax.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
# Script for building CCTBX
jobs:
- job: syntax
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 120
strategy:
maxParallel: 10
matrix:
python2.7:
PYTHON_VERSION: 2.7
python3.9:
PYTHON_VERSION: 3.9
python3.10:
PYTHON_VERSION: 3.10
python3.11:
PYTHON_VERSION: 3.11
python3.12:
PYTHON_VERSION: 3.12
python3.13:
PYTHON_VERSION: 3.13
steps:
- task: InstallSSHKey@0
inputs:
knownHostsEntry: boa.lbl.gov ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnPOtqyYASs6hc3fsmUQn92ovSozJsMsJyrMWjppUERX1tD4Fh0D7YaNhLvYpKi5mYVREo+tsKoOatCcqKGHCONWpzx7JHXUzfIBsy6nCeygRyyW4yuyoCuYFvOYLkaM4PrN/7XaZEnp1ux6/ZcbRxBDNK4f42svJUV39OX33tRuQWpP+O85paJr1ePHVz6U2n14a+3fRN3DBMti1dJuKOThU4djYEBQimx54pnW71eYORN2oUz+N/4RHAcomtxZpcUMl3Qadw8hD4s1XM6fzJ0Que7KefnnrPOgAEtZxKl9j09aaE70Oh+ie5Y6ckwddJ/4qZB5m2tBaEi3xuy0TSQ==
sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7XgVgdU9GmZuo5yVyW/htrAuxe7ypuq7IowWwfUC0WZw9SPzQ8kOGj63plF3ytx/qpgvUlS1AiywO20rZ83gHmRdAiuvt9laH09KlWEUhIhAQTzesqBG5aUT0MKo01yxijoRl5HC8w/MdOanc0h01e6IxnZvgG0N30RB1i4xVPCtR/VBmXSp4R0T+Q/gJjfQssuBxHVMrrute4V3uUHek58FL2QgUB0+zq6ipETjuCJxTSyYVAFtCYDPYs+0lAYYkWrXALCr9kX9s22jYtkyv5kNw6mEW8nhtA7GbTdJLv4M6/WYtcvQV8TDcNCfltOfl81U3gcZ9zhQDKGVoNaJEw== [email protected]
sshKeySecureFile: id_rsa
displayName: Download SSH key
- checkout: self
path: ./modules/cctbx_project
- script: |
set -xe
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
cd $(Pipeline.Workspace)/modules/cctbx_project
git checkout master
git remote add gitlab [email protected]:cctbx/cctbx_project.git
git fetch gitlab
git push -u gitlab master
displayName: Update GitLab mirror
condition: eq(variables['PYTHON_VERSION'], '3.9')
continueOnError: true
- script: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda create -y -c conda-forge -n py$(PYTHON_VERSION) python=$(PYTHON_VERSION) six future scons setuptools
displayName: Create conda environment
- script: |
set -xe
cd $(Pipeline.Workspace)/modules/cctbx_project
for f in `cat .azure-pipelines/py2_syntax_exceptions.txt`; do
echo Removing $f
rm $f; done
displayName: Remove Python 3 only files for Python 2 syntax check
condition: or(eq(variables['PYTHON_VERSION'], '2.7'), eq(variables['PYTHON_VERSION'], '3.7'))
- script: |
source activate py$(PYTHON_VERSION)
cd $(Pipeline.Workspace)
mkdir build
cd build
python ../modules/cctbx_project/libtbx/configure.py libtbx
make
displayName: Configure libtbx
- script: |
source activate py$(PYTHON_VERSION)
source $(Pipeline.Workspace)/build/setpaths.sh
libtbx.py_compile_all -v .
displayName: Check syntax
- script: |
source activate py$(PYTHON_VERSION)
source $(Pipeline.Workspace)/build/setpaths.sh
libtbx.find_clutter --verbose
displayName: Check for clutter