govuk_navigation_helpers 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Jenkinsfile +48 -0
- data/lib/govuk_navigation_helpers/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9312f2631f1f7a25f36ad7955f6b9272bac74bee
|
4
|
+
data.tar.gz: 9d6b8c5386f2512ea6064760f1c59f50e3ee58ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39ae57d1f800a4b453f7a83a8e5f8928fdb1d5d7db1b87fb7c521a4cea839ff6eece7577137791b405c70dcf9bbfae53573b80143fcf4fd97b97c7754b411f3
|
7
|
+
data.tar.gz: 45e121315ab5e62ba73926ee73a8e0c3f588c75b7a26e97857eb7aadcfbf7de6c89b07ec08262a97c8ddb8a8e577d4063af5a12bb8b63c64e786fe7ba7126fa6
|
data/CHANGELOG.md
CHANGED
data/Jenkinsfile
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
#!/usr/bin/env groovy
|
2
|
+
|
3
|
+
node {
|
4
|
+
def govuk = load '/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy'
|
5
|
+
|
6
|
+
try {
|
7
|
+
stage('Checkout') {
|
8
|
+
checkout scm
|
9
|
+
}
|
10
|
+
|
11
|
+
stage('Clean') {
|
12
|
+
govuk.cleanupGit()
|
13
|
+
govuk.mergeMasterBranch()
|
14
|
+
}
|
15
|
+
|
16
|
+
stage("Set up content schema dependency") {
|
17
|
+
govuk.contentSchemaDependency()
|
18
|
+
}
|
19
|
+
|
20
|
+
stage('Bundle') {
|
21
|
+
echo 'Bundling'
|
22
|
+
sh("bundle install --path ${JENKINS_HOME}/bundles/${JOB_NAME}")
|
23
|
+
}
|
24
|
+
|
25
|
+
stage('Linter') {
|
26
|
+
govuk.rubyLinter()
|
27
|
+
}
|
28
|
+
|
29
|
+
stage('Tests') {
|
30
|
+
govuk.setEnvar('RAILS_ENV', 'test')
|
31
|
+
govuk.runTests('spec')
|
32
|
+
}
|
33
|
+
|
34
|
+
if(env.BRANCH_NAME == "master") {
|
35
|
+
stage('Publish Gem') {
|
36
|
+
govuk.runRakeTask("publish_gem --trace")
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
} catch (e) {
|
41
|
+
currentBuild.result = 'FAILED'
|
42
|
+
step([$class: 'Mailer',
|
43
|
+
notifyEveryUnstableBuild: true,
|
44
|
+
recipients: 'govuk-ci-notifications@digital.cabinet-office.gov.uk',
|
45
|
+
sendToIndividuals: true])
|
46
|
+
throw e
|
47
|
+
}
|
48
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_navigation_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- ".ruby-version"
|
136
136
|
- CHANGELOG.md
|
137
137
|
- Gemfile
|
138
|
+
- Jenkinsfile
|
138
139
|
- LICENCE.txt
|
139
140
|
- README.md
|
140
141
|
- Rakefile
|