forked from operator-framework/community-operator-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1.41 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dist: bionic
language: python
os: linux
sudo: required
#TODO: remove
if: type = pull_request OR type = api
# - type = api
python:
- "3.8"
#TODO: set redhat-operator-ecosystem/operator-test-playbooks
env:
- DISTRO_TYPE=upstream PLAYBOOK_VARS="-i localhost, local.yml -e kind_version=v0.8.1 -e kind_kube_ver=v1.18.2 -e olm_ver=0.15.1 -e operator_sdk_version=v0.19.2 -e ansible_connection=local -e run_remove_catalog_repo=false" PLAYBOOK_REPO=https://github.com/J0zi/operator-test-playbooks PLAYBOOK_BRANCH='upstream-community' ANSIBLE_STDOUT_CALLBACK=yaml
services:
- docker
before_install:
- ./prepare-codebase
# check-pr needs to be sourced so it can pass the test early.
#- source scripts/ci/check-pr $DISTRO_TYPE
install:
#original
# - scripts/ci/install-deps $DISTRO_TYPE
- pip install ansible jmespath
jobs:
include:
# - stage: operatorhubio prod deploy
# name: Trigger PROD deploy of operatorhub.io
# script: scripts/ci/trigger-operatorhubio-ci.sh
# if: type = push
- stage: Release pipeline
name: Release Pipeline test
script:
- cd /tmp/oper/community-operators && scripts/ci/run-release -s
# if: type = push
- name: Release Pipeline upstream
script:
- cd /tmp/oper/community-operators && scripts/ci/run-release -u
# if: type = push
- name: Release Pipeline openshift community
script:
- cd /tmp/oper/community-operators && scripts/ci/run-release -c
# if: type = push