Commit Graph

53 Commits

Author SHA1 Message Date
Chris Hill-Scott
5c4de3d13d Add code coverage
- generates a code coverage report
- triggers Coveralls on every Travis build
- adds a badge to the README
2016-04-07 11:03:27 +01:00
Martyn Inglis
820a9b811e Typo in bucket name 2016-03-17 09:37:10 +00:00
Martyn Inglis
9e9990edc3 Adding live codedeploy deployment block
- on same account hence same keys as staging
- differs only in deployment-group name and S3 bucket
2016-03-17 09:15:25 +00:00
Martyn Inglis
8a46031203 Merge branch 'staging' 2016-03-04 13:38:33 +00:00
Martyn Inglis
b70fc63a76 Setup travis for staging deploys 2016-03-04 13:27:57 +00:00
Martyn Inglis
b62312ef64 Call update script 2016-03-03 17:07:48 +00:00
Rebecca Law
1d5bbd0d85 Set python version to 3.5 from 3.4 2016-02-24 16:27:17 +00:00
Nicholas Staples
479e96b646 Removed postgres from travis.yml. 2016-01-27 16:45:05 +00:00
Nicholas Staples
fbe49d0c95 Update build. 2016-01-27 16:32:40 +00:00
Chris Hill-Scott
1b7658e09a Fix flakiness with Gulp + Travis
Gulp was failing silently on Travis. I tracked this down to the task that
builds a custom, slimmed-down version of jQuery from source.

To fix this I’ve removed the task and replaced it with just `src`ing the
minified version of jQuery from `node_modules`.

Cons:
- A few more kb of JS

Pros:
- Less random, afternoon-chewing complexity
2016-01-12 15:16:16 +00:00
Martyn Inglis
bfb2267249 Updated travis to have build numbers etc on deloyed artifact 2016-01-11 14:43:07 +00:00
Martyn Inglis
a012fb7422 Updated travis to have build numbers etc on deloyed artifact 2016-01-11 14:38:12 +00:00
Martyn Inglis
22adf6481f Setting s3 key to be git commit and zip file 2016-01-11 12:53:12 +00:00
Martyn Inglis
44b40ce764 Setting s3 key to be git commit and zip file 2016-01-11 12:46:21 +00:00
Martyn Inglis
5c732ae868 Setting s3 key to be git commit and zip file 2016-01-11 12:42:06 +00:00
Martyn Inglis
ab36541914 Setting s3 key to be git commit and zip file 2016-01-11 12:40:38 +00:00
Martyn Inglis
68f4623194 Setting s3 key to be git commit and zip file 2016-01-11 12:32:15 +00:00
Martyn Inglis
a1e484838e rolled back as didn't work :-( 2016-01-11 10:59:22 +00:00
Martyn Inglis
bd4829f451 Setting s3 etag to be git commit 2016-01-11 10:54:04 +00:00
Martyn Inglis
0369670f93 Setting s3 etag to be git commit 2016-01-11 10:49:04 +00:00
minglis
3579a4ea94 Merge pull request #52 from alphagov/change-aws-keys
Changed keys used for deployment to a specific user with just these p…
2016-01-08 16:10:56 +00:00
Martyn Inglis
2666c967e3 Changed keys used for deployment to a specific user with just these permissions. 2016-01-08 16:07:15 +00:00
Chris Hill-Scott
80f214e0fa Delete from current directory before deploying
Does what https://github.com/alphagov/notifications-admin/pull/45 intended to do
2016-01-07 15:52:49 +00:00
Chris Hill-Scott
f350f070b3 Don’t package raw front end assets for deployment
None of these files are used by the app when it’s running them.

Having them in the deployed blob only makes the deploy slower and 
the logs massive.
2016-01-07 11:46:15 +00:00
Martyn Inglis
260e1bad85 Removed build to heroku 2016-01-06 11:44:13 +00:00
minglis
f9457d739e Merge pull request #41 from alphagov/putting-aws-back
Putting AWS back
2016-01-06 10:41:21 +00:00
Martyn Inglis
6943c88c48 Putting AWS back 2016-01-06 09:40:53 +00:00
Chris Hill-Scott
74da3b1adf Use EcmaScript 6, w/ transpiling for compatibility
ES6 has some nice new features. Specifically relevant to this piece of
work are:

Arrow functions[1], whose `this` context is bound the value of `this` in the
current scope and can’t be overidden. The code is cleaner as a result, and
doesn’t need the addition of a bind polyfill for older browsers.

Template strings[2], which are similar to triple-quoted multi line strings in
Python. This means less fiddly and error-prone string concatenation.

This commit adds Babel[3] to the Gulp pipeline. This transpiles Javascript
written to the ES6 specification into code which is compatible with older
browsers that don’t understand ES6 syntax.

It also rewrites the gulpfile itself using some ES6 syntax, for the same reasons.

1. https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions
2. https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings
3. https://babeljs.io
2016-01-06 09:39:42 +00:00
Chris Hill-Scott
5ebeec08ae Use a Node-based tools for handling assets
…or how to move a bunch of things from a bunch of different places into
`app/static`.

There are three main reasons not to use Flask Assets:
- It had some strange behaviour like only
- It was based on Ruby SASS, which is slower to get new features than libsass,
  and meant depending on Ruby, and having the SASS Gem globally installed—so
  you’re already out of being a ‘pure’ Python app
- Martyn and I have experience of doing it this way on Marketplace, and we’ve
  ironed out the initial rough patches

The specific technologies this introduces, all of which are Node-based:
- Gulp – like a Makefile written in Javascript
- NPM – package management, used for managing Gulp and its related dependencies
- Bower – also package management, and the only way I can think to have
  GOV.UK template as a proper dependency

…speaking of which, GOV.UK template is now a dependency. This means it can’t be
modified at all (eg to add a global `#content` wrapper), so every page now
inherits from a template that has this wrapper. But it also means that we have a
clean upgrade path when the template is modified.

Everything else (toolkit, elements) I’ve kept as submodules but moved them to a
more logical place (`app/assets` not `app/assets/stylesheets`, because they
contain more than just SASS/CSS).
2016-01-05 13:12:35 +00:00
Rebecca Law
0eabdc06be try again 2016-01-05 11:59:25 +00:00
Rebecca Law
41b59fdebe Remove bundle install 2016-01-05 11:53:09 +00:00
Rebecca Law
ea9187a7ec Removing the aws deployment commands until aws is running again 2016-01-05 11:48:24 +00:00
Rebecca Law
eab451a38b Removing ruby versions 2016-01-05 11:39:54 +00:00
Rebecca Law
c691becba2 Trying version 1.9.3 2016-01-05 11:28:57 +00:00
Rebecca Law
4cb2310359 Use version 2.0.0 2016-01-05 11:22:03 +00:00
Rebecca Law
8c72166ebe Bah! Another attempt. 2016-01-05 11:04:29 +00:00
Rebecca Law
e3d96644c7 Attempts at fixing the deploy - but it seems PR 33 will fix it anyway. 2016-01-05 10:51:04 +00:00
Nicholas Staples
989d914326 Update the travis file to upgrade ruby version to 2.0.0. 2016-01-04 13:55:29 +00:00
Martyn Inglis
249de62c30 Added codedeploy back in 2015-12-17 10:01:55 +00:00
Martyn Inglis
86c98b413a Removed AWS deploy for now 2015-12-16 14:26:09 +00:00
Martyn Inglis
4ffadc39c4 Trap errors in stop script in AWS, and put heroku back as a deploy ganet 2015-12-16 14:15:51 +00:00
Martyn Inglis
4a8f70b3b8 Updated travis for codedeploy deploy 2015-12-16 14:10:56 +00:00
Martyn Inglis
e9035b8c0e Updated travis for codedeploy deploy 2015-12-16 14:03:17 +00:00
Martyn Inglis
ec08a5229f Updated travis for codedeploy deploy 2015-12-16 14:02:12 +00:00
Martyn Inglis
3247330da5 Updated travis for codedeploy deploy 2015-12-16 14:00:38 +00:00
Chris Hill-Scott
262cbffad8 Install SASS Gem on Travis
This is what was making the build fail :(((((
2015-12-11 16:31:29 +00:00
Rebecca Law
3f017b30f2 108536490: add the proxy_fix 2015-12-01 10:00:07 +00:00
Rebecca Law
12eebb09b2 108536234: Added before script to create db 2015-11-25 15:53:25 +00:00
Rebecca Law
cb28104068 108536234: added database url 2015-11-25 15:48:32 +00:00
Rebecca Law
fdd5d6c006 108536234: Add postgres for travis 2015-11-25 15:36:51 +00:00