forked from heroku/heroku-buildpack-gradle
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yml
More file actions
81 lines (76 loc) · 2.4 KB
/
Copy pathconfig.yml
File metadata and controls
81 lines (76 loc) · 2.4 KB
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
version: 2.1
orbs:
heroku: circleci/heroku@1.1.1
executors:
cedar-14:
docker:
- image: heroku/cedar:14
heroku-16:
docker:
- image: heroku/heroku:16
heroku-18:
docker:
- image: heroku/heroku:18
heroku-20:
docker:
- image: heroku/heroku:20
jobs:
hatchet:
parameters:
heroku-stack:
type: enum
enum: ["cedar-14", "heroku-16", "heroku-18", "heroku-20"]
docker:
- image: circleci/ruby:2.7
environment:
HEROKU_TEST_STACK: << parameters.heroku-stack >>
HATCHET_BUILDPACK_BASE: https://github.com/heroku/heroku-buildpack-gradle
HATCHET_APP_LIMIT: 100
PARALLEL_SPLIT_TEST_PROCESSES: 8
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 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:
version: 2.1
default-ci-workflow:
jobs:
- buildpack-testrunner
- hatchet:
matrix:
parameters:
heroku-stack: ["cedar-14", "heroku-16", "heroku-18"]