File tree Expand file tree Collapse file tree 2 files changed +50
-18
lines changed Expand file tree Collapse file tree 2 files changed +50
-18
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
2
3
- dry :
4
- prepare : &prepare
5
- command : |
6
- crystal --version
7
- git config --global user.email "[email protected] "
8
- git config --global user.name "Your Name"
9
- git config --global column.ui always
3
+ orbs :
4
+ crystal :
manastech/[email protected]
10
5
11
- steps : &steps
12
- - run : *prepare
13
- - checkout
14
- - run : shards install
15
- - run : make
16
- - run : make test
17
- - run : crystal tool format --check
6
+ commands :
7
+ shards-make-test :
8
+ steps :
9
+ - run :
10
+ name : git config
11
+ command : |
12
+ git config --global user.email "[email protected] "
13
+ git config --global user.name "Your Name"
14
+ git config --global column.ui always
15
+ - crystal/version
16
+ - checkout
17
+ - crystal/shards-install
18
+ - run : make
19
+ - run : make test
20
+ - crystal/format-check
21
+
22
+ with-brew-cache :
23
+ parameters :
24
+ steps :
25
+ type : steps
26
+ steps :
27
+ - restore_cache :
28
+ keys :
29
+ - brew-cache-v1-{{ .Branch }}
30
+ - brew-cache-v1-
31
+ - steps : <<parameters.steps>>
32
+ - save_cache :
33
+ key : brew-cache-v1-{{ .Branch }}-{{ epoch }}
34
+ paths :
35
+ - /usr/local/Homebrew
36
+ - ~/Library/Caches/Homebrew
18
37
19
38
jobs :
20
39
test :
21
40
docker :
22
41
- image : crystallang/crystal:latest
23
- steps : *steps
42
+ steps :
43
+ - shards-make-test
44
+
45
+ test-on-osx :
46
+ macos :
47
+ xcode : 11.1.0 # latest mojave
48
+ steps :
49
+ - with-brew-cache :
50
+ steps :
51
+ - run :
52
+ name : Install Crystal
53
+ command : brew install crystal
54
+ - shards-make-test
24
55
25
56
test-on-nightly :
26
57
docker :
27
58
- image : crystallang/crystal:nightly
28
- steps : *steps
59
+ steps :
60
+ - shards-make-test
29
61
30
62
workflows :
31
63
version : 2
32
64
ci :
33
65
jobs :
34
66
- test
67
+ - test-on-osx
35
68
nightly :
36
69
triggers :
37
70
- schedule :
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: crystal
2
2
3
3
os :
4
4
- linux
5
- - osx
6
5
7
6
before_script : |
8
7
make
You can’t perform that action at this time.
0 commit comments