-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
60 lines (43 loc) · 1.92 KB
/
Makefile
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
all: clean deps build lint install test-unit test-integration doc
ci: clean deps build lint install test-unit doc
clean:
rm -f ruby_aem-*.gem Gemfile.lock
deps:
gem install bundler --version=1.17.3
rm -rf .bundle
bundle install --binstubs
lint:
bundle exec rubocop
bundle exec yaml-lint .*.yml conf/*.yaml
build: clean
gem build ruby_aem.gemspec
install: build
gem install `ls ruby_aem-*.gem`
test-unit:
bundle exec rspec test/unit
test-integration: install
bundle exec rspec test/integration
doc:
bundle exec yard doc --output-dir doc/api/master/
doc-publish:
gh-pages --dist doc/
publish: install
gem push `ls ruby_aem-*.gem`
release-major:
rtk release --release-increment-type major
release-minor:
rtk release --release-increment-type minor
release-patch:
rtk release --release-increment-type patch
release: release-minor
tools:
npm install -g [email protected]
fixtures:
# based on AEM documentation at https://helpx.adobe.com/experience-manager/kt/platform-repository/using/ssl-wizard-technical-video-use.html#generate-key-cert
# you will be prompted for private key password, the integration tests are expecting 'someprivatekeypassword' as the password for the fixtures data
mkdir -p test/integration/fixtures/
openssl genrsa -aes256 -out test/integration/fixtures/private_key.key 4096
openssl req -sha256 -new -key test/integration/fixtures/private_key.key -out test/integration/fixtures/cert_sign_request.csr -subj '/CN=localhost'
openssl x509 -req -days 365 -in test/integration/fixtures/cert_sign_request.csr -signkey test/integration/fixtures/private_key.key -out test/integration/fixtures/cert_chain.crt
openssl pkcs8 -topk8 -inform PEM -outform DER -in test/integration/fixtures/private_key.key -out test/integration/fixtures/private_key.der -nocrypt
.PHONY: all ci deps clean lint build install test-unit test-integration doc doc-publish publish release tools fixtures release release-major release-minor release-patch