-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
85 lines (70 loc) · 2.12 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: 0.6.4-{build}
environment:
RUBYGEMS_TOKEN:
secure: JMYgDTDQLMo9n9iqe+z18TKdsWhHdaSzJB/BeWbxfD6efzXzYK6K59XzAKX5jFseQetL0RCrk+gE9WQrT6OTcg==
COVERALLS_SERVICE_NAME: appveyor
COVERALLS_TOKEN:
secure: cu6NcEUU479Jdkyf/qSduY/JwjsSQ8hkKZHB79UC/VY8alk1iUB1cWoBIl+Zl+Um
image:
- Visual Studio 2022
- Ubuntu
for:
-
matrix:
only:
- image: Visual Studio 2022
artifacts:
- path: '*.exe'
install:
- tzutil /s "W. Europe Standard Time"
- gem install bundler
- bundle install
- npm i @intuit/judo
- npm i patch-package
- npx patch-package
build_script:
- bundle exec rake buildsingle
- rake buildexe
test_script:
- bundle exec rake test
- bundle exec rake testsingle
- bundle exec rake testexe
- copy /B ruby-grafana-reporter*.exe ruby-grafana-reporter.exe
- node node_modules\@intuit\judo\dist\judo.js judo_tests
- del ruby-grafana-reporter.exe
-
matrix:
only:
- image: Ubuntu
artifacts:
- path: '*.rb'
- path: '*.gem'
install:
- export TZ=Europe/Berlin
- rvm use 2.7.8
- bundle install
build_script:
- bundle exec rake buildsingle
- bundle exec rake buildgem
test_script:
- COVERALLS_REPO_TOKEN=${COVERALLS_TOKEN} bundle exec rspec spec/test_default.rb
- bundle exec rake testsingle
before_deploy:
- sh: "mkdir ~/.gem && echo -e \"---\n:rubygems_api_key: ${RUBYGEMS_TOKEN}\" > ~/.gem/credentials"
- chmod 0600 ~/.gem/credentials
- gem push *.gem
before_build:
- ruby -v
- gem -v
- bundle -v
- bundle exec rake check
deploy:
- provider: GitHub
auth_token:
# expires early 2025
# create API key in github and encrypt here: https://ci.appveyor.com/tools/encrypt
secure: 4YJ0a92H3pQi1rv704FuV/l4Dy1mn5fDf536xY6QkL7r7l3LGHbaqldXO7mXvoLB/NlX19DXUggx7NlneUm3Bp/RYJPhYlduh1RI8nJH49/ul8pueVpZ9Y18CorNZAUu
artifact: /.*\.(?:gem|exe|rb)/
draft: true
on:
APPVEYOR_REPO_TAG: true