Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Nov 2, 2016
2 parents b1261e8 + ec8f0ce commit b3cf992
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/common/directives/ush-logo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a embed-only=true href="https://www.ushahidi.com" class="ushahidi-bug" target="_blank">
<a embed-only="true" href="https://www.ushahidi.com" class="ushahidi-bug" target="_blank">
<ng-include include-replace src="'templates/common/directives/mode-bar/ushahidi-logo.html'"></ng-include>
<span class="hidden">Powered by Ushahidi</span>
</a>
2 changes: 1 addition & 1 deletion app/common/services/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function (
maps: {},
config: undefined,
getZoomControlPosition: function () {
return $window.self !== $window.top ? 'bottomleft' : 'bottomright';
return 'bottomleft';
},
getMap: function (name) {
if (!this.maps[name]) {
Expand Down
2 changes: 1 addition & 1 deletion app/main/posts/views/filter-by-survey.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="toolbox hide-when-medium">
<div embed-only="true" class="toolbox hide-when-medium">
<button ng-click="openFilters()" class="button-beta button-plain mode-context-trigger" translate="app.filter_by_survey">Filter by survey</button>
</div>
15 changes: 5 additions & 10 deletions app/main/posts/views/post-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@
<!-- floating action button -->
<add-post-button></add-post-button>

<filter-posts filters="filters" embed-only=false></filter-posts>
<filter-posts filters="filters" embed-only="false"></filter-posts>

<filter-by-survey></filter-by-survey>

<div class="button-group hide-until-medium">
<!-- share button
<button type="button">
<svg class="iconic">
<use xlink:href="../../img/iconic-sprite.svg#share"></use>
</svg>
<span class="button-label">Share</span>
</button>
-->
<div class="button-group hide-until-medium" embed-only="true">
<post-share filters="filters" button="true"></post-share>
</div>
<div class="button-group" embed-only="false">
<post-share filters="filters" button="true"></post-share>
</div>
<!-- toolbar -->
Expand Down
2 changes: 1 addition & 1 deletion app/main/posts/views/share/post-share.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a ng-class="{ 'button' : isButton(), 'button-flat': isAdd()}"ng-click="openShareMenu()">
<a ng-class="{ 'button' : isButton(), 'button-flat': isAdd()}" ng-click="openShareMenu()">
<div class="loading" ng-if="loading">
<div class="line"></div>
<div class="line"></div>
Expand Down
21 changes: 18 additions & 3 deletions codeship-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- name: "Build client"
service: build
command: build
tag: '^(v[0-9]\.[0-9]+.[0-9]+(-[a-zA-Z0-9\.]+)?)|(develop)|(production)$'
#tag: '^(v[0-9]\.[0-9]+.[0-9]+(-[a-zA-Z0-9\.]+)?)|(develop)|(production)$'

- type: parallel
steps:
Expand All @@ -16,8 +16,23 @@
- name: "Deploy staging"
service: deploy
tag: develop
command: ansible-playbook -vv -i hosts/rackspace_staging platform-client-update-rsync.yml -e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
command: >
ansible-playbook -vv -i hosts/rackspace_staging platform-client-update-rsync.yml
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
- name: "Deploy Production"
service: deploy
tag: production
command: "ansible-playbook -vv -i hosts/rackspace_prod platform-client-update.yml -e=\"PLATFORM_CLIENT_VERSION=$CI_COMMIT_ID\""
command: >
ansible-playbook -vv -i hosts/rackspace_prod platform-client-update-rsync.yml
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
- name: "Deploy other branches"
service: deploy
command: >
ansible-playbook -vv -i hosts/rackspace_pr platform-client-branches-deploy.yml
-e BRANCH_NAME="$CI_BRANCH"
-e DEPLOYMENTS_API_DOMAIN="api.ushahididev.com"
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
-e PLATFORM_CLIENT_REPO="$CI_REPO_NAME"
-e PLATFORM_CLIENT_VERSION="$CI_COMMIT_ID"
-e COMMIT_STATUS_CONTEXT="continuous-deployment/${CI_NAME}"
-e DEPLOYMENT_LOG_URL="http://app.codeship.com/projects/${CI_PROJECT_ID}/builds/${CI_BUILD_ID}"
2 changes: 1 addition & 1 deletion deployment.env.encrypted
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Kt37jmkBvOKEYgeZSYg4vS9VUykAUi4BCubn6b0NR5zJ8pO+T/xWC7B9xC3LBu95ANJ0O9vtFjl5osXWi5wtWFktdJivpqRbuJ078B/aGvufHE6CbRJrE2FBLAuSpGjVPFC5cvFmb1O8GXyXxRLe80iXC2Ndd0DkeS6xNzntWG8l9GLqRb60DankQMwbi92RwY65Db1CYjdFZ3xO3ObWItKk+0E0C70APb7+vVp7bPAG4MwNm2dlSxwBeQnVNzXojtZ3vpdeQskP9EmCN4Bek5/BJnKANdbXYi8f/4CP425/yWItKk1rJ6w0gpTzE//0zufIqSQihDnkYUqWx6NqiMUgK/YxPKlwaR+yNS/wsiltBUKkn17VD7B6KUlvo2pQT3k+fG3C6Jlr5Wldwt/HMTeYCRjoVW4t7sD0GJPhF0CznT1CV1V4hjtDggydIzy9jSENWnEm5JhLqGUAURljhR9yXNTqlvl81MhjuM+xmk2LXZxkshfP1uGHCdUjWHQfkxuEZdBvJ5TmBheejw141lDfuPvfgMJ+U+XSI2ybu4UARF85B4KA3A1n0blYsIGMzAMGBvHyBVZpChih+e5PubDlPhpGExgSunMxuEHVQM9V7JVoG9rabOBy3PsHtof+Yp7txhM3JUxGR+2nerNLQ8rXwyVI9jllB3+4ySjyeblgyeCzyEqucaJI95PCvBMIGIgx6qLvT2zpuNltZMgZMbpulNKpsToYW1fMcDow2ex2UTPpLh4piBM62tn4mvHftbdheQbVHlCdCB80+n0XOmYz22EHRx3aemfNyzOJPmM91dbu4JOYMVh8eaNSrxfIjkRhqTm+1PpwEzrvad0ND5Y1oEbO3F90yJo9EuJs7evOPikL7JsNJVUvKccTT12oZWSEJT0IJmepHAksniH0WDwn9ZjcZ9nJHkTAYZ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vNzkZTzHeB+dddTV/wjn2dcut3qUuGiFL5nwE9IBIoKDgYtFH1AkkizfEBKaLd/HvnyZNZU315w6Rs2mXlD4asRM6GhqevToEvoO09+8q/UwbRqi3V60B5d5RnBVywl6aukvYdaFWAQbBkqUmNbfzkoFeeBYKJYQBsc1qOuhCpVap8pDifyAeXNoGzJ2jGpeibxp0WqdYdGZe9mdT5xEhpJU9R+JT8q8VRgDjdEfLTSRxf9MQzt6syeuh6utFU4iHB6zJeYDpiUlp/hwa4e/jSXaalLw1QJ8V3EYwEDADn4EBo+79FeJ5GCoSDLMS7KBEc3+TXXrpOSFzBvLRhf+DGkv8AO6nr0IefEwTDkF4ags69z8YaWSWMS/UH98RGlyy6AdD68QdVXEPSVDq8i9Bptgo203qej1heA7HrzsplPJW4MThzOBqxi8eFOmbnKi9Vv8ELNH/Sm9Y5+MFHw2UJbMNlvMZVVaTANIP8QSq5i1l++adTly2/riJnRXDzDX5JeFDxmYZvOt5rqijyZoW51l9mddjkr7LZRSFJKS6Pf0tgJhxWc7n7WK9pV5jdHXU+bFRRGic0TfvAowS/WsU4Y4ztKDjJC7sPi6v54BDRjgns/mRrCUUT2KClkguYAoEgGejDCLokhtO9mV+Bsczw2Gg5nCHJDIh+xV6Sl4ZyxGh0H3s34d4H6iaAGwqhUt2Q20l0+hdeN75/gY0Z84wV7VyxrFT18Eh/RdvOebS82onm0e9vPgeW0AVr7EzVIcQxIh/yVuQaUK6AUiuRpGtpvWe/Ju11OJSVDdP4Fk1uLz3QslGNYL6HGlofmCNzoxz5khQqzpCcXHYWHga6T0mMuHrh6Jq0Ox/Wsd9CAg6CBQQFXRU/M66ZHxoztCOr/YBxPAMt3O+wS6TDCGQ==
4 changes: 2 additions & 2 deletions docker/deploy.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ==> Import latest ubuntu/ansible build
FROM williamyeh/ansible:ubuntu14.04

# ==> Install git
RUN apt-get update && apt-get install git -y
# ==> Install git and utils
RUN apt-get update && apt-get install git gettext -y

# ==> Set workging directory to /opt
WORKDIR /opt
Expand Down
14 changes: 12 additions & 2 deletions docker/deploy.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,15 @@ EOM
# ==> Get latest deployment code from github
ansible-galaxy install -r roles.yml

exec $*

# Perform variable substitution on parameters
# i.e. if we get a parameter myvar="$CI_BRANCH" we substitute $CI_BRANCH for
# its actual value in the environment, and get i.e. myvar="master"
args=()
for p in $@; do
args+=(`printf '%s\n' $p | envsubst`)
done

# Execute parameter passed in arguments
echo executing: "${args[@]}"

exec "${args[@]}"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"nvd3": "^1.8.4",
"selection-model": "jtrussell/angular-selection-model.git",
"underscore": "^1.7.0",
"ushahidi-platform-pattern-library": "3.6.1"
"ushahidi-platform-pattern-library": "3.6.2"
},
"engines": {
"node": ">=4.0"
Expand Down
46 changes: 46 additions & 0 deletions test/unit/common/directives/file-upload.directive.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
var ROOT_PATH = '../../../../';

describe('file upload directive', function () {

var $rootScope,
$compile,
$scope,
$window,
element;

beforeEach(function () {
fixture.setBase('mocked_backend/api/v3');

require(ROOT_PATH + 'test/unit/mock/mock-modules.js');

var testApp = angular.module('testApp', [
'ushahidi.mock'
]);

testApp.directive('fileUpload', require(ROOT_PATH + 'app/common/directives/file-upload.directive'));

require(ROOT_PATH + 'test/unit/simple-test-app-config')(testApp);

angular.mock.module('testApp');
});

beforeEach(angular.mock.module('client-templates'));

beforeEach(inject(function (_$rootScope_, _$compile_, _Notify_, _GlobalFilter_, _$window_) {
$rootScope = _$rootScope_;
$compile = _$compile_;
$window = _$window_;
$scope = _$rootScope_.$new();
$rootScope.globalLayout = 'layout-a';
$window.self = 'frame';
$rootScope.setLayout = function () {};
spyOn($rootScope, 'setLayout').and.callThrough();
}));

it('should set the layout', function () {
element = '<file-upload></file-upload>';
element = $compile(element)($scope);
$scope.$digest();

});
});

0 comments on commit b3cf992

Please sign in to comment.