forked from heroku/heroku-buildpack-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
84 lines (79 loc) · 2.77 KB
/
config.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: 2.1
orbs:
heroku: circleci/[email protected]
executors:
heroku-18:
docker:
- image: heroku/heroku:18
heroku-20:
docker:
- image: heroku/heroku:20
heroku-22:
docker:
- image: heroku/heroku:22
jobs:
hatchet:
parameters:
heroku-stack:
type: enum
enum: ["heroku-18", "heroku-20", "heroku-22"]
docker:
- image: circleci/ruby:2.7
environment:
PARALLEL_SPLIT_TEST_PROCESSES: 6
# Hatchet Configuration (https://github.com/heroku/hatchet#env-vars)
HATCHET_BUILDPACK_BASE: https://github.com/heroku/heroku-buildpack-clojure
HATCHET_BUILDPACK_BRANCH: << pipeline.git.branch >>
HATCHET_APP_LIMIT: 100
HATCHET_EXPENSIVE_MODE: 1
HATCHET_RUN_MULTI: 1
# Default stack for all Heroku apps created by Hatchet
DEFAULT_APP_STACK: << parameters.heroku-stack >>
# Default config variables for all Heroku apps created by Hatchet, prefixed with 'DEFAULT_APP_CONFIG_'
# DEFAULT_APP_CONFIG_FOO: "bar"
steps:
- checkout
- heroku/install
- run:
name: Install Ruby dependencies
command: |
gem install bundler
bundle install
- run:
name: Hatchet CI setup
command: bundle exec hatchet ci:setup
- run:
name: Execute rspec w/ parallel_split_test
command: bundle exec parallel_split_test test/spec/
buildpack-testrunner:
docker:
- image: circleci/openjdk:8
environment:
SHUNIT_HOME: /tmp/shunit2-2.1.6
# Note the missing STACK environment variable here. This works since there is a default value in the buildpack
# source. I ported this as-is from the Travis config. Given we're trying to get rid of testrunner entirely,
# it will stay like this. If we, for some reason, decide to keep testrunner, we should look into a fixed STACK env var.
steps:
- checkout
- run:
name: Install required apt packages
command: |
sudo apt-get update
sudo apt-get install file
- run:
name: Download and unpack shunit 2.1.6
command: curl -sSf --retry 3 --retry-connrefused --connect-timeout 5 https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz | tar xz -C /tmp/
- run:
name: Clone heroku-buildpack-testrunner
command: git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner
- run:
name: Execute buildpack-testrunner
command: /tmp/testrunner/bin/run .
workflows:
default-ci-workflow:
jobs:
- buildpack-testrunner
- hatchet:
matrix:
parameters:
heroku-stack: ["heroku-18", "heroku-20", "heroku-22"]