Merge pull request #106 from google/use-llvm-10
Use llvm-10 on phabricator agent
This commit is contained in:
commit
7f49135531
7 changed files with 8 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
FROM debian:testing
|
||||
|
||||
RUN apt-get update ;\
|
||||
RUN echo "deb [trusted=yes] http://apt.llvm.org/buster/ llvm-toolchain-buster main\n$(cat /etc/apt/sources.list)" > /etc/apt/sources.list;\ # add LLVM 10 deb pkg to sources
|
||||
apt-get update ;\
|
||||
apt-get install -y --no-install-recommends locales \
|
||||
cmake ninja-build git ca-certificates clang lld ccache python3 build-essential \
|
||||
clang-tidy clang-format \
|
|
@ -25,6 +25,6 @@ IMAGE_NAME="${1%/}"
|
|||
QUALIFIED_NAME="${GCR_HOSTNAME}/${GCP_PROJECT}/${IMAGE_NAME}"
|
||||
|
||||
cd "${DIR}/${IMAGE_NAME}"
|
||||
docker build -t ${IMAGE_NAME} .
|
||||
docker build -t --no-cache ${IMAGE_NAME} .
|
||||
docker tag ${IMAGE_NAME} ${QUALIFIED_NAME}
|
||||
docker push ${QUALIFIED_NAME}
|
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
# Starts a new instances of a docker image. Example:
|
||||
# sudo build_run.sh agent-debian-testing-clang8-ssd /bin/bash
|
||||
# sudo build_run.sh agent-debian-testing-ssd /bin/bash
|
||||
|
||||
set -eux
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
|
|
@ -137,7 +137,7 @@ Invoke-WebRequest -uri 'https://raw.githubusercontent.com/google/llvm-premerge-c
|
|||
|
||||
## Testing scripts locally
|
||||
|
||||
Build and run agent docker image `sudo ./containers/build_run.sh agent-debian-testing-clang8-ssd /bin/bash`.
|
||||
Build and run agent docker image `sudo ./containers/build_run.sh agent-debian-testing-ssd /bin/bash`.
|
||||
|
||||
Within a container set environment variables similar to [pipeline](https://github.com/google/llvm-premerge-checks/blob/master/Jenkins/Phabricator-pipeline/Jenkinsfile).
|
||||
|
||||
|
|
|
@ -151,18 +151,18 @@ spec:
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: agent-debian-testing-clang8-ssd
|
||||
name: agent-debian-testing-ssd
|
||||
namespace: jenkins
|
||||
spec:
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: agent-debian-testing-clang8-ssd
|
||||
app: agent-debian-testing-ssd
|
||||
spec:
|
||||
containers:
|
||||
- name: agent-debian-testing-clang8
|
||||
image: gcr.io/llvm-premerge-checks/agent-debian-testing-clang8-ssd
|
||||
image: gcr.io/llvm-premerge-checks/agent-debian-testing-ssd
|
||||
ports:
|
||||
- containerPort: 22
|
||||
resources:
|
||||
|
|
Loading…
Reference in a new issue