forked from sds/overcommit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
66 lines (51 loc) · 1.56 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
version: "{build}"
clone_depth: 1
environment:
matrix:
- RUBY_FOLDER_VERSION: "200"
- RUBY_FOLDER_VERSION: "200-x64"
- RUBY_FOLDER_VERSION: "21"
- RUBY_FOLDER_VERSION: "21-x64"
- RUBY_FOLDER_VERSION: "22"
- RUBY_FOLDER_VERSION: "22-x64"
- RUBY_FOLDER_VERSION: "23"
- RUBY_FOLDER_VERSION: "23-x64"
matrix:
fast_finish: true
cache:
# Cache installed gems unless dependencies change
- vendor\bundle -> 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 --path vendor\bundle
build: off
before_test:
# Necessary for AuthorName and AuthorEmail pre-commit hooks to pass
- git config --global user.email "[email protected]"
- 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
- bundle exec overcommit --sign
- bundle exec overcommit --sign pre-commit
- bundle exec overcommit --run