forked from sds/overcommit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (47 loc) · 1.45 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
version: "{build}"
clone_depth: 1
environment:
matrix:
- RUBY_FOLDER_VERSION: "24-x64"
- RUBY_FOLDER_VERSION: "25-x64"
- RUBY_FOLDER_VERSION: "26-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-document
- gem --version
- where gem
# Install latest Bundler to work around version issues
- gem install bundler:'< 2' --force
- 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.autocrlf true
- 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