-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcircle.yml
45 lines (44 loc) · 1.26 KB
/
circle.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
version: 2
jobs:
build:
docker:
- image: cimg/ruby:3.2.2
environment:
TZ: "/usr/share/zoneinfo/America/Argentina/Buenos_Aires"
paralelism: 2
steps:
- add_ssh_keys:
fingerprints:
- "2b:d1:13:72:6c:a2:d1:4c:30:a5:a7:e5:b4:52:ee:75"
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GreypineCI"
- checkout
- run:
name: APT Installs
command: |
sudo apt-get update
sudo apt-get install build-essential patch
sudo apt-get install ruby-dev zlib1g-dev liblzma-dev libgmp-dev cmake
- run:
name: Configure Bundler
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
- run:
name: Install dependencies
command: bundle install --jobs=10 --retry=3
- run:
name: Run the tests for backend
command: bundle exec rake test
- run:
name: Publishing
command: bundle exec rake publish
workflows:
version: 2
build:
jobs:
- build:
filters:
branches:
only: source