未验证 提交 2b1ffab0 编写于 作者: S Sebastian Florek 提交者: GitHub

Remove Travis in favor of Github Workflows (#5281)

上级 c871a4c1
# Travis continuous integration system configuration file.
# Read more follows:
# * https://docs.travis-ci.com/user/customizing-the-build/
# * https://docs.travis-ci.com/user/reference/bionic/
# * https://docs.travis-ci.com/user/installing-dependencies/
# * https://docs.travis-ci.com/user/firefox/
# * https://config.travis-ci.com/ref/job/addons/apt
sudo: required
dist: bionic
language: node_js
node_js: 12.16.0
addons:
firefox: "latest"
apt:
packages:
- google-chrome
sources:
- google-chrome-stable
update: true
git:
depth: 500
quiet: true
cache:
directories:
- .cached_tools
- ~/.cache
- node_modules
before_install:
- export NG_CLI_ANALYTICS=ci
- export DOCKER_CLI_EXPERIMENTAL=enabled
- export GO111MODULE=on
- export GOPROXY=https://proxy.golang.org
- export PATH=$PATH:$GOPATH/bin
- export NODE_OPTIONS=--max-old-space-size=8192
- eval "$(gimme 1.13.9)"
# `npm ci` will run between `before_install` and `before_script`.
before_script:
- echo "Recheck versions before job."
- go version
- docker --version
- google-chrome-stable --version
- firefox --version
jobs:
include:
- stage: test
name: "Code check & linting"
before_script:
- aio/scripts/install-codegen.sh
script: npm run check
- name: "Unit tests"
script: npm run test:coverage
after_success:
- rm -rf $TRAVIS_BUILD_DIR/.tmp
- bash <(curl -s https://codecov.io/bash)
- name: "Helm linting"
cache: false
install:
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- wget https://github.com/garethr/kubeval/releases/download/0.14.0/kubeval-linux-amd64.tar.gz
- mkdir kubeval
- tar xf kubeval-linux-amd64.tar.gz -C kubeval
- export PATH="$PATH:$(pwd)/kubeval"
before_script: skip # We don't need Docker nor Go
script:
- aio/scripts/helm-lint.sh
- name: "e2e tests"
script: npm run cluster:start && npm run e2e
- stage: deploy
name: "Development release"
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- npm run docker:push:head
- stage: release
name: "Release"
script:
- docker login -u $DOCKER_RELEASE_USER -p $DOCKER_RELEASE_PASS
- npm run docker:push
# Manual step for now since it requires to add a GitHub Token to Travis which would be a security issue
# - name: "Helm repository generation"
# cache: false
# install:
# - curl -L https://git.io/get_helm.sh | bash && helm init --skip-refresh --client-only
# - git remote set-branches origin '*' && git fetch --unshallow
# # GTHUB_WRITE_TOKEN is a travis secret variable that is generated from https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
# - git remote set-url origin https://x-access-token:${GITHUB_WRITE_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
# before_script: skip # We don't need Docker nor Go
# script:
# - sh ./aio/scripts/
stages:
- test
- name: deploy
if: branch = master AND type != pull_request
- name: release
if: tag IS present AND type != pull_request
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册