github.com/yrj2011/jx-test-infra@v0.0.0-20190529031832-7a2065ee98eb/config/jobs/tensorflow/minigo/minigo.yaml (about)

     1  presubmits:
     2    tensorflow/minigo:
     3    - name: pull-tf-minigo-cc
     4      agent: kubernetes
     5      always_run: true
     6      context: pull-tf-minigo-cc
     7      branches:
     8      - master
     9      rerun_command: "/test pull-tf-minigo-cc"
    10      trigger: "(?m)^/test( all| pull-tf-minigo-cc),?(\\s+|$)"
    11      decorate: true
    12      spec:
    13        containers:
    14        - image: gcr.io/tensor-go/cc-base:latest
    15          command:
    16          - /bin/bash
    17          - -c
    18          args:
    19          # Copy tensorflow libraries into repo, test with board_size=9, test with board_size=19.
    20          - "cp -r /app/cc/tensorflow ./cc/tensorflow && bazel test cc:all --test_output=errors --compilation_mode=dbg --define=board_size=9 && bazel test cc:all --test_output=errors --compilation_mode=dbg --define=board_size=19"
    21          securityContext:
    22            privileged: true
    23          resources:
    24            requests:
    25              memory: "2Gi"
    26        imagePullSecrets:
    27        - name: minigo-image-pull
    28  
    29    - name: tf-minigo-presubmit
    30      context: tf-minigo-presubmit
    31      agent: kubernetes
    32      always_run: true         # Run for every PR, or only when requested.
    33      rerun_command: "/test tf-minigo-presubmit"
    34      trigger: "(?m)^/test( all| tf-minigo-presubmit),?(\\s+|$)"
    35      branches:
    36      - master
    37      labels:
    38        preset-service-account: "true"
    39      spec:
    40        containers:
    41        - image: gcr.io/minigo-testing/minigo-prow-harness-v2:latest
    42          imagePullPolicy: Always
    43          args:
    44          - "--job=$(JOB_NAME)"
    45          - "--repo=github.com/tensorflow/minigo=$(PULL_REFS)"
    46          - --service-account=/etc/service-account/service-account.json
    47          - --upload=gs://kubernetes-jenkins/pr-logs
    48          - --scenario=execute
    49          - --
    50          - ./test.sh
    51  
    52  postsubmits:
    53    tensorflow/minigo:
    54    - name: tf-minigo-postsubmit
    55      agent: kubernetes
    56      branches:
    57      - master
    58      labels:
    59        preset-service-account: "true"
    60      spec:
    61        containers:
    62        - image: gcr.io/minigo-testing/minigo-prow-harness-v2:latest
    63          imagePullPolicy: Always
    64          args:
    65          - "--job=$(JOB_NAME)"
    66          - "--repo=github.com/tensorflow/minigo=$(PULL_REFS)"
    67          - --service-account=/etc/service-account/service-account.json
    68          - --upload=gs://kubernetes-jenkins/logs
    69          - --scenario=execute
    70          - --
    71          - ./test.sh
    72  
    73  periodics:
    74  - name: tf-minigo-periodic
    75    interval: 8h
    76    agent: kubernetes
    77    labels:
    78      preset-service-account: "true"
    79    spec:
    80      containers:
    81      - image: gcr.io/minigo-testing/minigo-prow-harness-v2:latest
    82        imagePullPolicy: Always
    83        args:
    84        - "--job=$(JOB_NAME)"
    85        - --repo=github.com/tensorflow/minigo=master
    86        - --service-account=/etc/service-account/service-account.json
    87        - --upload=gs://kubernetes-jenkins/logs
    88        - --scenario=execute
    89        - --
    90        - ./test.sh