forked from sds/overcommit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (54 loc) · 1.72 KB
/
appveyor.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
58
59
60
61
62
63
64
65
66
67
68
69
version: "{build}"
clone_depth: 1
environment:
matrix:
- RUBY_FOLDER_VERSION: "200"
RUBY_GEMS_FOLDER: "2.0.0"
- RUBY_FOLDER_VERSION: "200-x64"
RUBY_GEMS_FOLDER: "2.0.0"
- RUBY_FOLDER_VERSION: "21"
RUBY_GEMS_FOLDER: "2.1.0"
- RUBY_FOLDER_VERSION: "21-x64"
RUBY_GEMS_FOLDER: "2.1.0"
- RUBY_FOLDER_VERSION: "22"
RUBY_GEMS_FOLDER: "2.2.0"
- RUBY_FOLDER_VERSION: "22-x64"
RUBY_GEMS_FOLDER: "2.2.0"
matrix:
fast_finish: true
cache:
# Cache installed gems unless dependencies change
- C:\Ruby%RUBY_FOLDER_VERSION%\bin -> Gemfile,overcommit.gemspec
- C:\Ruby%RUBY_FOLDER_VERSION%\lib\ruby\gems\%RUBY_GEMS_FOLDER% -> Gemfile,overcommit.gemspec
install:
# Add ruby executables to PATH
- set PATH=C:\Ruby%RUBY_FOLDER_VERSION%\bin;%PATH%
- echo %PATH%
# Print version and location for pre-installed grep
- grep --version
- where grep
# Print version and location for pre-installed git
- git --version
- where git
# Print version and location for pre-installed ruby
- ruby --version
- where ruby
# Install latest version of RubyGems
- gem update --system --no-ri --no-rdoc
- gem --version
- where gem
# Print version and location for pre-installed bundler
- bundler --version
- where bundler
# Install ruby dependencies
- bundle install --retry 3
build: off
before_test:
# Necessary for AuthorName and AuthorEmail pre-commit hooks to pass
- git config --global user.email "appveyor@appveyor.ci"
- git config --global user.name "Appveyor CI"
# Ignore CRLF conversion warnings
- git config --global core.safecrlf false
test_script:
- bundle exec rspec --tty --backtrace --color --format documentation
- bundle exec overcommit --run