-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
53 lines (52 loc) · 1.43 KB
/
bitbucket-pipelines.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
image: ruby:3.0.3
pipelines:
default:
- parallel:
- step:
name: Test
caches:
- bundler
services:
- postgres
script:
- cp test/db/config.ci.yml database/config.yml
- bundle install
- bundle exec rake test
- step:
name: Rubocop
caches:
- bundler
script:
- bundle install
- bundle exec rake rubocop
- step:
name: Lint code
script:
- ruby -wc **/*.rb
- step:
name: Build .NET example
image: mcr.microsoft.com/dotnet/sdk:6.0
caches:
- bundler
script:
# If we'd like to run the API in this container there's a fair amount of setup involved, e.g.
# - apt-get update
# - apt-get install -y ruby2.7 ruby-dev ubuntu-dev-tools
# - gem install bundler
# - bundle config set without 'development test'
# - bundle install
# - ruby cedar_api.rb &
# - sleep 5
# For now, just be sure we can build the C# code
- cd example/csharp-client/
- dotnet build
definitions:
caches:
bundler: ./vendor
services:
postgres:
image: postgres
variables:
POSTGRES_DB: 'cedar_api_test'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'