1
- # Installs pip and lit, clones the git submodules, builds LDC and the test
1
+ # Installs lit, clones the git submodules, builds LDC and the test
2
2
# runners and runs the tests.
3
3
# Requires env variables EXTRA_CMAKE_FLAGS and PARALLELISM.
4
4
common_steps_template : &COMMON_STEPS_TEMPLATE
5
- install_pip_and_lit_script : |
6
- # Install pip
7
- curl --max-time 300 --retry 3 -OL https://bootstrap.pypa.io/pip/2.7/get-pip.py
8
- python get-pip.py --user
9
- rm get-pip.py
5
+ install_lit_script : |
10
6
# Install lit
11
7
python -m pip install --user lit
12
8
python -c "import lit.main; lit.main.main();" --version . | head -n 1
@@ -71,8 +67,11 @@ install_ubuntu_prerequisites_template: &INSTALL_UBUNTU_PREREQUISITES_TEMPLATE
71
67
apt-get -yq install \
72
68
git-core cmake ninja-build $gcc_pkg \
73
69
llvm-dev zlib1g-dev libclang-common-$LIBCLANG_COMMON_VERSION-dev \
74
- $libcurl_pkg curl gdb python tzdata unzip zip \
70
+ $libcurl_pkg curl gdb python3 python3-pip tzdata unzip zip \
75
71
$EXTRA_APT_PACKAGES
72
+ python3 --version
73
+ ln -s $(which python3) /usr/bin/python
74
+ python --version
76
75
# Download & extract host LDC
77
76
curl --max-time 300 --retry 3 -L -o ldc2.tar.xz https://github.com/ldc-developers/ldc/releases/download/v$HOST_LDC_VERSION/ldc2-$HOST_LDC_VERSION-linux-x86_64.tar.xz
78
77
mkdir host-ldc
@@ -105,6 +104,10 @@ install_macos_prerequisites_template: &INSTALL_MACOS_PREREQUISITES_TEMPLATE
105
104
mkdir host-ldc
106
105
tar -xf ldc2.tar.xz --strip 1 -C host-ldc
107
106
rm ldc2.tar.xz
107
+ # Install Python3
108
+ brew install python
109
+ ln -sf $(which python3) /usr/local/bin/python
110
+ python --version
108
111
109
112
environment :
110
113
CIRRUS_CLONE_DEPTH : 50
@@ -155,11 +158,13 @@ task:
155
158
OS : osx
156
159
PATH : ${CIRRUS_WORKING_DIR}/../cmake/bin:${CIRRUS_WORKING_DIR}/../ninja:${CIRRUS_WORKING_DIR}/../llvm/bin:${PATH}
157
160
PARALLELISM : 12
158
- matrix :
159
- - TASK_NAME_SUFFIX : x64
160
- EXTRA_CMAKE_FLAGS : " -DBUILD_LTO_LIBS=ON"
161
- - TASK_NAME_SUFFIX : x64 shared-libs-only
162
- EXTRA_CMAKE_FLAGS : " -DBUILD_LTO_LIBS=ON -DBUILD_SHARED_LIBS=ON"
161
+ brew_cache :
162
+ folder : " $HOME/Library/Caches/Homebrew"
163
+ matrix :
164
+ - TASK_NAME_SUFFIX : x64
165
+ EXTRA_CMAKE_FLAGS : " -DBUILD_LTO_LIBS=ON"
166
+ - TASK_NAME_SUFFIX : x64 shared-libs-only
167
+ EXTRA_CMAKE_FLAGS : " -DBUILD_LTO_LIBS=ON -DBUILD_SHARED_LIBS=ON"
163
168
<< : *INSTALL_MACOS_PREREQUISITES_TEMPLATE
164
169
<< : *COMMON_STEPS_TEMPLATE
165
170
@@ -181,6 +186,8 @@ task:
181
186
cd $CIRRUS_WORKING_DIR/..
182
187
sysctl -n hw.ncpu
183
188
pkg install -y git cmake ninja gmake llvm bash gtar p7zip
189
+ python --version
190
+ python -m ensurepip
184
191
# Download & extract host LDC
185
192
curl --max-time 300 --retry 3 -L -o ldc2.tar.xz https://github.com/ldc-developers/ldc/releases/download/v$HOST_LDC_VERSION/ldc2-$HOST_LDC_VERSION-freebsd-x86_64.tar.xz
186
193
mkdir pre-ldc
0 commit comments