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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fba2dad8d4cf628e28fa8f21861c424c87ab444
4
- data.tar.gz: f9c522d2424160b6f34fc675d107f9b5f7aec215
3
+ metadata.gz: 9312f2631f1f7a25f36ad7955f6b9272bac74bee
4
+ data.tar.gz: 9d6b8c5386f2512ea6064760f1c59f50e3ee58ec
5
5
  SHA512:
6
- metadata.gz: dbdcff0ab5f3f3cf62c24a449d7ca0a6e413edf5762338d0550defeedcab378acbc61f1d851488d3785dd6080dd0d57c5b818972e1bd2c61b8ecf133dd464cf2
7
- data.tar.gz: 9d162ed86cdc9a002c01b37140f1ac1da95bb8dce64cbf547be960c4fd616cd166710426eb3ec8f424715b0b66e6a520ca6458beb28bcb210165dd0029a56110
6
+ metadata.gz: f39ae57d1f800a4b453f7a83a8e5f8928fdb1d5d7db1b87fb7c521a4cea839ff6eece7577137791b405c70dcf9bbfae53573b80143fcf4fd97b97c7754b411f3
7
+ data.tar.gz: 45e121315ab5e62ba73926ee73a8e0c3f588c75b7a26e97857eb7aadcfbf7de6c89b07ec08262a97c8ddb8a8e577d4063af5a12bb8b63c64e786fe7ba7126fa6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.1.1
2
+
3
+ * Add `Jenkinsfile` for CI on Jenkins 2
4
+
1
5
  ## 2.1.0
2
6
 
3
7
  * Add helper to render taxon breadcrumbs
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
+ }
@@ -1,3 +1,3 @@
1
1
  module GovukNavigationHelpers
2
- VERSION = "2.1.0".freeze
2
+ VERSION = "2.1.1".freeze
3
3
  end
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.0
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-01-17 00:00:00.000000000 Z
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