Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Initial ci setup
Browse files Browse the repository at this point in the history
- compile
- test

Sharing build results does not work that way.
  • Loading branch information
loewenstein-sap committed Mar 7, 2017
1 parent 50bb9d1 commit 61ccb95
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "bosh-cpi-haskell"]
path = src/bosh-kubernetes-cpi/dependencies/bosh-cpi-haskell
url = git@github.com:SAP/bosh-cpi-haskell.git
url = https://github.com/SAP/bosh-cpi-haskell.git
[submodule "haskell-kubernetes"]
path = src/bosh-kubernetes-cpi/dependencies/haskell-kubernetes
url = git@github.com:loewenstein/haskell-kubernetes.git
url = https://github.com/loewenstein/haskell-kubernetes.git
31 changes: 31 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
groups:
- name: bosh-kubernetes-cpi-release
jobs:
- build
# - release

jobs:
- name: build
serial: true
plan:
- aggregate:
- {trigger: true, get: cpi-src}

- task: compile
file: cpi-src/ci/tasks/compile.yml

- task: test-unit
file: cpi-src/ci/tasks/test-unit.yml

resources:
- name: cpi-src
type: git
source:
uri: https://github.com/sap/bosh-kubernetes-cpi-release.git
branch: master
ignore_paths:
- releases/bosh-kubernetes-cpi/**
- .final_builds/**
- docs/**
- README.md
11 changes: 11 additions & 0 deletions ci/tasks/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

STACK_WORK_OUTPUT=$PWD/stack-work
export STACK_ROOT=/root/.stack

pushd cpi-src/src/bosh-kubernetes-cpi
stack build
cp -R .stack-work $STACK_WORK_OUTPUT/
popd
16 changes: 16 additions & 0 deletions ci/tasks/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
platform: linux

image_resource:
type: docker-image
source:
repository: loewenstein/main-stack

inputs:
- name: cpi-src

outputs:
- name: stack-work

run:
path: cpi-src/ci/tasks/compile.sh
11 changes: 11 additions & 0 deletions ci/tasks/test-unit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

STACK_WORK_INPUT=$PWD/stack-work
export STACK_ROOT=/root/.stack

pushd cpi-src/src/bosh-kubernetes-cpi
cp -R $STACK_WORK_INPUT/.stack-work .
stack test
popd
14 changes: 14 additions & 0 deletions ci/tasks/test-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
platform: linux

image_resource:
type: docker-image
source:
repository: loewenstein/main-stack

inputs:
- name: cpi-src
- name: stack-work

run:
path: cpi-src/ci/tasks/test-unit.sh

0 comments on commit 61ccb95

Please sign in to comment.