Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial setup #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
dist: bionic
language: python
os: linux
sudo: required

#TODO: remove
if: type = pull_request
# - 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
8 changes: 8 additions & 0 deletions prepare-codebase
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

echo "Need to clone default branch, cloning..."
mkdir -p /tmp/oper
cd /tmp/oper
git clone https://github.com/operator-framework/community-operators.git
cd community-operators
ls