-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
78 lines (62 loc) · 1.67 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
version: 0.6.4-{build}
environment:
RUBYGEMS_TOKEN:
secure: RUnxmwed0QbCtVoP+US3z1ISjyDQ/BtMhTMJWOmTz8Hlw63FlYbs+fWbMY6YwRbb1tOLz3bKl+qqLFw8S2U4Hg==
COVERALLS_SERVICE_NAME: appveyor
COVERALLS_TOKEN:
secure: cu6NcEUU479Jdkyf/qSduY/JwjsSQ8hkKZHB79UC/VY8alk1iUB1cWoBIl+Zl+Um
image:
- Visual Studio 2019
- Ubuntu
for:
-
matrix:
only:
- image: Visual Studio 2019
artifacts:
- path: '*.exe'
install:
- tzutil /s "W. Europe Standard Time"
- set PATH=C:\Ruby30-x64\bin
- bundle install
build_script:
- bundle exec rake buildsingle
- rake buildexe
test_script:
- bundle exec rake test
- bundle exec rake testsingle
- bundle exec rake testexe
-
matrix:
only:
- image: Ubuntu
artifacts:
- path: '*.rb'
- path: '*.gem'
install:
- export TZ=Europe/Berlin
- 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: "echo -e \"---\n:rubygems_api_key: ${RUBYGEMS_TOKEN}\" > ~/.gem/credentials"
- chmod 0600 ~/.gem/credentials
- gem push *.gem
before_build:
- bundle exec rake check
before_test:
- ruby -v
- gem -v
- bundle -v
deploy:
- provider: GitHub
auth_token:
secure: M1W91LySSlC/6n0+CCIfUhxfPu5DqG60KVdelbOCtYDUekkMyLj7RxLyEdLQYpAy
artifact: /.*\.(?:gem|exe|rb)/
draft: true
on:
APPVEYOR_REPO_TAG: true