-
Notifications
You must be signed in to change notification settings - Fork 165
/
config.yml
57 lines (52 loc) · 1.43 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
version: 2.1
install: &install
name: Install bundle
command: |
gem install bundler
bundle install --path vendor/bundle
missingdeps: &missingdeps
name: Install missing dependecies
command: |
cat /etc/os-release
printf "deb http://deb.debian.org/debian buster main\ndeb http://security.debian.org buster/updates main\ndeb-src http://security.debian.org buster/updates main" > /tmp/sources.list
sudo cp /tmp/sources.list /etc/apt/sources.list
sudo apt-get update
sudo apt-get install cmake libicu-dev libssl-dev
test: &test
name: Test bundle
command: bundle exec rake test --trace
executors:
ruby-2-5:
docker:
- image: circleci/ruby:2.5.5
ruby-2-6:
docker:
- image: circleci/ruby:2.6.3
ruby-2-7:
docker:
- image: circleci/ruby:2.7.1
jobs:
"ruby-test":
parameters:
ruby-version:
type: executor
executor: << parameters.ruby-version >>
working_directory: ~/fluent-plugin-kubernetes_metadata_filter
steps:
- run: *missingdeps
- checkout
- run: *install
- run: *test
- store_test_results:
path: coverage
- store_artifacts:
path: coverage
workflows:
"test_multiple_ruby_versions":
jobs:
- ruby-test:
ruby-version: ruby-2-5
- ruby-test:
ruby-version: ruby-2-6
- ruby-test:
ruby-version: ruby-2-7