@@ -9,104 +9,115 @@ jobs:
9
9
- run :
10
10
name : Prepare Ruby environment
11
11
command : |
12
+ ruby --version
13
+ echo "gem `gem --version`"
12
14
gem update --system
13
15
gem install bundler
14
16
bundle install
15
17
- run : rake test
16
18
test-2.4 :
17
- docker :
18
- - image : circleci/ruby:2.4
19
- steps :
20
- - checkout
21
- - run :
22
- name : Prepare Ruby environment
23
- command : |
24
- gem update --system
25
- gem install bundler
26
- bundle install
27
- - run : rake test
19
+ docker :
20
+ - image : circleci/ruby:2.4
21
+ steps :
22
+ - checkout
23
+ - run :
24
+ name : Prepare Ruby environment
25
+ command : |
26
+ ruby --version
27
+ echo "gem `gem --version`"
28
+ gem update --system
29
+ gem install bundler
30
+ bundle install
31
+ - run : rake test
28
32
test-2.5 :
29
- docker :
30
- - image : circleci/ruby:2.5
31
- steps :
32
- - checkout
33
- - run :
34
- name : Prepare Ruby environment
35
- command : |
36
- gem update --system
37
- gem install bundler
38
- bundle install
39
- - run : rake test
33
+ docker :
34
+ - image : circleci/ruby:2.5
35
+ steps :
36
+ - checkout
37
+ - run :
38
+ name : Prepare Ruby environment
39
+ command : |
40
+ ruby --version
41
+ echo "gem `gem --version`"
42
+ gem update --system
43
+ gem install bundler
44
+ bundle install
45
+ - run : rake test
40
46
build :
41
- docker :
42
- - image : circleci/ruby:2.5
43
- steps :
44
- - checkout
45
- - run :
46
- name : Prepare Ruby environment
47
- command : |
48
- gem update --system
49
- gem install bundler
50
- bundle install
51
- - run :
52
- name : Build Gem
53
- command : gem build texlogparser.gemspec
54
- - persist_to_workspace :
55
- root : .
56
- paths :
57
- - .circleci/gem_credentials
58
- - tex_log_parser*.gem
59
- - test/texlogs/*.log
47
+ docker :
48
+ - image : circleci/ruby:2.5
49
+ steps :
50
+ - checkout
51
+ - run :
52
+ name : Prepare Ruby environment
53
+ command : |
54
+ ruby --version
55
+ echo "gem `gem --version`"
56
+ gem update --system
57
+ gem install bundler
58
+ bundle install
59
+ - run :
60
+ name : Build Gem
61
+ command : gem build texlogparser.gemspec
62
+ - persist_to_workspace :
63
+ root : .
64
+ paths :
65
+ - .circleci/gem_credentials
66
+ - tex_log_parser*.gem
67
+ - test/texlogs/*.log
60
68
doc :
61
- docker :
62
- - image : circleci/ruby:2.5
63
- steps :
64
- - checkout
65
- - run :
66
- name : Prepare Ruby environment
67
- command : |
68
- gem update --system
69
- gem install bundler
70
- bundle install
71
- - run :
72
- name : Build Documentation
73
- command : bundle exec rake doc
69
+ docker :
70
+ - image : circleci/ruby:2.5
71
+ steps :
72
+ - checkout
73
+ - run :
74
+ name : Prepare Ruby environment
75
+ command : |
76
+ ruby --version
77
+ echo "gem `gem --version`"
78
+ gem update --system
79
+ gem install bundler
80
+ bundle install
81
+ - run :
82
+ name : Build Documentation
83
+ command : rake doc
74
84
test-cli :
75
- docker :
76
- - image : circleci/ruby:2.5
77
- steps :
78
- - attach_workspace :
79
- at : .
80
- - run :
81
- name : Install Gem
82
- command : gem install tex_log_parser*.gem
83
- - run :
84
- name : Test version output
85
- command : texlogparser -v
86
- - run :
87
- name : Test an actual log
88
- command : texlogparser -i `ls -d1 test/texlogs/*.log | head -1`
85
+ docker :
86
+ - image : circleci/ruby:2.5
87
+ steps :
88
+ - attach_workspace :
89
+ at : .
90
+ - run :
91
+ name : Install Gem
92
+ command : gem install tex_log_parser*.gem
93
+ - run :
94
+ name : Test version output
95
+ command : texlogparser -v
96
+ - run :
97
+ name : Test an actual log
98
+ command : texlogparser -i `ls -d1 test/texlogs/*.log | head -1`
89
99
deploy :
90
- docker :
91
- - image : circleci/ruby:2.5
92
- steps :
93
- - attach_workspace :
94
- at : .
95
- - run :
96
- name : Deploy Gem
97
- command : |
98
- cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials
99
- gem push tex_log_parser*.gem
100
- shred -u ~/.gem/credentials
101
- filters :
102
- branches :
103
- ignore : /.*/
104
- tags :
105
- only : /^v.*/
100
+ docker :
101
+ - image : circleci/ruby:2.5
102
+ steps :
103
+ - attach_workspace :
104
+ at : .
105
+ - run :
106
+ name : Deploy Gem
107
+ command : |
108
+ echo "gem `gem --version`"
109
+ cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials
110
+ gem push tex_log_parser*.gem
111
+ shred -u ~/.gem/credentials
112
+ filters :
113
+ branches :
114
+ ignore : /.*/
115
+ tags :
116
+ only : /^v.*/
106
117
107
118
workflows :
108
119
version : 2
109
- test :
120
+ test-and-deploy :
110
121
jobs :
111
122
- test-2.3
112
123
- test-2.4
0 commit comments