istio-mixer-ci.yaml 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: istio-mixer-ci

19
on: [pull_request]
20
env:
21
  SCRIPTS_DIR: ./test/e2e-mesh/e2e-istio/scripts
22
  LOG_DIR: /tmp/skywalking
23
  INSTALL_SCRIPTS_DIR: ./install/deploy
24 25 26 27 28 29 30
jobs:
  build:
    runs-on: ubuntu-16.04
    steps:
      - uses: actions/checkout@v1
      - name: Prepare enviroment
        run: |
31
          bash ${SCRIPTS_DIR}/pre.sh
32 33 34 35 36 37 38
          mkdir -p ${LOG_DIR}
      - name: Start minikube
        run: bash ${SCRIPTS_DIR}/minikube.sh start > ${LOG_DIR}/minikube-start-log.txt 2>&1 &
      - name: Wating minikube ready
        run: bash ${SCRIPTS_DIR}/minikube.sh wait
      - name: Setup tunnel
        run: minikube tunnel --log_dir=${LOG_DIR} &
39 40 41 42 43 44 45 46
      - name: Compile all and Build docker image
        run: bash ${SCRIPTS_DIR}/compile_build.sh
      - name: Istio install
        run: bash ${INSTALL_SCRIPTS_DIR}/istio-deploy.sh
      - name: SW And ES install
        run: bash ${INSTALL_SCRIPTS_DIR}/skywalking-deploy.sh
      - name: Bookinfo demo install
        run: bash ${INSTALL_SCRIPTS_DIR}/demo-deploy.sh
47 48 49 50
      - uses: actions/upload-artifact@v1.0.0
        with:
          name: logs
          path: /tmp/skywalking