Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SaitTalhaNisanci committed Aug 25, 2020
1 parent 0a0e35a commit 8d26d63
Showing 1 changed file with 50 additions and 43 deletions.
93 changes: 50 additions & 43 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- persist_to_workspace:
root: .
paths:
- .
- build-11/*
- install-11.tar

build-12:
docker:
Expand All @@ -29,34 +30,10 @@ jobs:
- persist_to_workspace:
root: .
paths:
- .

build-11-12:
docker:
- image: 'heisenberg302/extbuilder:12.4'
steps:
- checkout
- run:
name: 'Configure, Build, and Install'
command: build-ext
- persist_to_workspace:
root: .
paths:
- .
- build-12/*
- install-12.tar

build-13:
docker:
- image: 'heisenberg302/extbuilder:13beta'
steps:
- checkout
- run:
name: 'Configure, Build, and Install'
command: build-ext
- persist_to_workspace:
root: .
paths: [.]

build-12-13:
docker:
- image: 'heisenberg302/extbuilder:13beta'
steps:
Expand All @@ -67,7 +44,8 @@ jobs:
- persist_to_workspace:
root: .
paths:
- .
- build-13/*
- install-13.tar

check-style:
docker:
Expand Down Expand Up @@ -126,8 +104,14 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
name : "install necessary tools"
command: |
apt-get update
apt-get install -y autoconf build-essential libcurl4-openssl-dev libicu-dev libreadline-dev libselinux1-dev libxslt-dev libssl-dev
- run:
name: 'Install and Test (check-multi)'
command: 'chown -R circleci:circleci /home/circleci && install-and-test-ext check-multi'
Expand All @@ -142,6 +126,7 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -156,6 +141,7 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -170,6 +156,7 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -184,6 +171,7 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -197,6 +185,7 @@ jobs:
- image: 'heisenberg302/exttester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -220,6 +209,7 @@ jobs:
- image: 'heisenberg302/failtester:11.9'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -229,21 +219,28 @@ jobs:

test-11-12_check-pg-upgrade:
docker:
- image: 'citus/pgupgradetester:latest'
- image: 'heisenberg302/pgupgradetester:latest'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
name : "install necessary tools"
command: |
apt-get update
apt-get install -y autoconf build-essential libcurl4-openssl-dev libicu-dev libreadline-dev libselinux1-dev libxslt-dev libssl-dev
- run:
name: 'Install and test postgres upgrade'
command: 'chown -R circleci:circleci /home/circleci && install-and-test-ext --target check-pg-upgrade --old-pg-version 11 --new-pg-version 12'
no_output_timeout: 2m

test-12-13_check-pg-upgrade:
docker:
- image: 'citus/pgupgradetester:latest'
- image: 'heisenberg302/pgupgradetester:latest'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -256,6 +253,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -269,6 +267,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -283,6 +282,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -297,6 +297,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -311,6 +312,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -325,6 +327,7 @@ jobs:
- image: 'heisenberg302/exttester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -349,6 +352,7 @@ jobs:
- image: 'heisenberg302/failtester:12.4'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -358,10 +362,12 @@ jobs:

test-11_check-citus-upgrade:
docker:
- image: 'citus/citusupgradetester-11:latest'
- image: 'heisenberg302/citusupgradetester:11.9'
working_directory: /home/circleci/project
steps:
- {attach_workspace: {at: .}}
- checkout
- attach_workspace:
at: .
- run:
name: 'Install and test citus upgrade'
command: |
Expand All @@ -382,6 +388,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -396,6 +403,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -410,6 +418,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -424,6 +433,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -438,6 +448,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -452,6 +463,7 @@ jobs:
- image: 'heisenberg302/exttester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand All @@ -476,6 +488,7 @@ jobs:
- image: 'heisenberg302/failtester:13beta'
working_directory: /home/circleci/project
steps:
- checkout
- attach_workspace:
at: .
- run:
Expand Down Expand Up @@ -526,6 +539,7 @@ workflows:
version: 2
build_and_test:
jobs:

- check-merge-to-enterprise:
filters:
branches:
Expand All @@ -537,15 +551,6 @@ workflows:
- build-12
- build-13

- build-11-12:
requires:
- build-11

- build-12-13:
requires:
- build-12


- check-style
- check-sql-snapshots

Expand Down Expand Up @@ -596,11 +601,13 @@ workflows:

- test-11-12_check-pg-upgrade:
requires:
- build-11-12
- build-11
- build-12

- test-12-13_check-pg-upgrade:
requires:
- build-12-13
- build-12
- build-13

- test-11_check-citus-upgrade:
requires: [build-11]
Expand Down

0 comments on commit 8d26d63

Please sign in to comment.