Rohan Mitchell
ac650ebd46
Add support for mirroring Norway's database
2016-01-07 10:56:56 +11:00
Maikel Linke
ea68619f0b
Use bundled rails to prepare imported database
2015-12-17 10:31:31 +11:00
Maikel Linke
efa7c215e2
Removing usage of SimpleCov
2015-12-04 14:51:44 +11:00
Maikel Linke
a810a6e2b7
fix succeed_if_master_merged
2015-12-04 10:37:55 +11:00
Maikel Linke
d67a5aba0e
Remove script/delayed_job.sh
...
This version was dependent on the Australian environment. It is better
to call delayed_job directly from monit. The deployment repository has
been updated.
2015-12-04 10:37:55 +11:00
Rohan Mitchell
6666de96b2
Update ruby version used in CI
2015-11-05 11:24:12 +11:00
Maikel Linke
dc8166ec84
New CI script to check test state via GitHub API
2015-10-21 16:29:41 +11:00
Maikel Linke
2357f46a4e
CI scripts use env vars
...
The CI scripts are configurable through the environment. They had
hardcoded configurations before. The Australian BuildKite setup will
need global environment variables like this:
STAGING_SSH_HOST=ofn-staging2
STAGING_CURRENT_PATH=/home/openfoodweb/apps/openfoodweb/current
STAGING_SERVICE=unicorn_openfoodweb
STAGING_DB_HOST=localhost
STAGING_DB_USER=openfoodweb
STAGING_DB=openfoodweb_production
PRODUCTION_REMOTE=production:/home/openfoodweb/apps/openfoodweb/current
2015-10-21 10:04:29 +11:00
Maikel Linke
10cd654ff5
CI Handling git tags
...
Buildkite is running tags like branches. This caused `git branch`
commands to fail. The function got extended to handle tags as well.
Ideally, Buildkite will offer an option not to rebuild tags.
2015-09-11 15:41:44 +10:00
Rohan Mitchell
361f7e3432
Remove double-output on push to production. Add script to archive old branches.
2015-07-02 09:39:49 +10:00
Rohan Mitchell
1363daae3c
When fetching ofn commit, if it is not found, return a sentinal value to avoid a wayward git push
2015-06-26 11:22:19 +10:00
Rohan Mitchell
ae3a69c1af
Put in debugging for failing push-to-prod step (sigh)
2015-06-18 15:29:05 +10:00
Rohan Mitchell
ce0de6e1dc
Fix push to production - needs includes for get_ofn_commit
2015-06-18 14:25:48 +10:00
Rohan Mitchell
860183e675
Do not double-display deployment output
2015-06-18 12:41:47 +10:00
Rohan Mitchell
b5d841562d
Getting OFN commit should retrieve from meta-data
2015-06-18 10:02:15 +10:00
Rohan Mitchell
9f883db25b
Really show deploy output in real time
2015-06-18 09:57:21 +10:00
Rohan Mitchell
389ac07bd7
Store commit at start of build process and use it throughout
2015-06-17 16:25:34 +10:00
Rohan Mitchell
2b3689fd93
Run CI specs in parallel
2015-06-03 14:29:38 +10:00
Rohan Mitchell
473322c7e6
CI: Add more robust merge-to-master script
2015-06-03 12:25:28 +10:00
Rohan Mitchell
bd6bac8874
Display deployment output in real time
...
This reverts commit 485eee4bdd .
2015-05-06 20:02:22 +10:00
Rohan Mitchell
50d2ddc05f
Add progress comments
2015-05-06 20:00:50 +10:00
Rohan Mitchell
10b7a86745
Add debugging to merge script
2015-05-06 19:50:06 +10:00
Rohan Mitchell
6d33dc5070
Add script to merge master into the current branch if required before running specs
2015-05-06 19:41:36 +10:00
Rohan Mitchell
d109e898d2
Preserve newlines when displaying deploy script output
2015-05-06 19:38:20 +10:00
Rohan Mitchell
485eee4bdd
Deploy scripts display their output
2015-05-06 18:07:50 +10:00
Rohan Mitchell
f84e704d99
Retry simple push-to-master script
2015-05-06 17:59:36 +10:00
Rohan Mitchell
ad7e5a45bb
Add updated merge script
2015-05-06 17:58:36 +10:00
Rohan Mitchell
f4df227ef0
Buildkite should now support Fuubar
2015-04-30 13:54:27 +10:00
Rohan Mitchell
8e2c224d4d
cd before sourcing includes
2015-04-24 15:00:49 +10:00
Rohan Mitchell
bb2f2a6f54
Also stop delayed job before loading staging baseline
2015-04-24 15:00:38 +10:00
Rohan Mitchell
9149276048
Kill any postgres connections before dropping and recreating database
2015-04-24 12:17:39 +10:00
Rohan Mitchell
92e03e208f
Extract load_environment method
2015-04-23 07:23:34 +10:00
Rohan Mitchell
7aeeb6d18f
Add script to run JS specs in CI
2015-04-22 16:36:31 +10:00
Rohan Mitchell
28c79cdb50
Use db:test:load instead of db:test:prepare in CI to avoid conflicts between branches
2015-04-22 15:01:22 +10:00
Rohan Mitchell
b9e3ff54b8
Add build script to merge to master
2015-04-22 14:47:54 +10:00
Rohan Mitchell
0c0be0112e
Update paths to include ci
2015-04-22 14:31:30 +10:00
Rohan Mitchell
883a2e0a0e
WIP: Move CI scripts to their own folder
2015-04-22 14:29:59 +10:00
Rohan Mitchell
6c81109b17
Local branch isn't checked out, so we need to test remote branch
2015-04-22 14:17:07 +10:00
Rohan Mitchell
1c9a95b3d6
Set execute bit
2015-04-22 13:19:17 +10:00
Rohan Mitchell
53c4c8b5b7
Push to staging fails unless master has been merged into current branch
2015-04-22 13:16:39 +10:00
Rohan Mitchell
d406f9ccdf
Tests fail unless master has been merged into current branch
2015-04-22 13:14:51 +10:00
Rohan Mitchell
7d4a4f8f9d
Pushing to staging first loads staging baseline data
2015-04-22 12:55:36 +10:00
Rohan Mitchell
35536a629c
Set execute bit
2015-04-22 12:55:36 +10:00
Rohan Mitchell
22127b2d18
Use progress formatter for less verbose CI output. I miss Fuubar formatter, though.
2015-04-21 15:17:34 +10:00
Rohan Mitchell
692e58e8f7
Output spec-by-spec results to track specs-hanging-at-90-percent issue
2015-04-21 10:52:14 +10:00
Rohan Mitchell
4158663e9a
Pushing to production saves staging baseline data
2015-04-21 10:47:36 +10:00
Rohan Mitchell
2b5fc656fe
Configure delayed job logging, add startup script for monit
2015-04-17 10:40:25 +10:00
Rohan Mitchell
61cb2514cd
Add Delayed::Job
2015-04-16 16:54:43 +10:00
Rohan Mitchell
e017c30ab7
Do not double-run db:test:prepare
2015-04-16 14:07:37 +10:00
Rohan Mitchell
23888b7576
chmod +x
2015-04-16 14:07:37 +10:00