1
0
Fork 0

Build process updates

Dieser Commit ist enthalten in:
Timothy Warren 2015-12-10 11:32:24 -05:00
Ursprung 7ef0482dec
Commit 0e42b583aa
5 geänderte Dateien mit 9 neuen und 49 gelöschten Zeilen

Datei anzeigen

@ -1,5 +1,5 @@
# Tim's Todo
[![Build Status](https://travis-ci.org/timw4mail/tims-todo.svg?branch=master)](https://travis-ci.org/timw4mail/tims-todo)
[![Build Status](https://jenkins.timshomepage.net/buildStatus/icon?job=todo)](https://jenkins.timshomepage.net/job/todo/)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/timw4mail/tims-todo/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/timw4mail/tims-todo/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/timw4mail/tims-todo/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/timw4mail/tims-todo/?branch=master)

Datei anzeigen

@ -175,8 +175,6 @@ class Todo {
//Get the current user's primary group
$group_id = $this->get_user_group();
//print_r($group_id);
$this->CI->db->set('title', $title)
->set('description', $desc)
->set('group_id', $group_id);
@ -191,8 +189,6 @@ class Todo {
show_error('This category already exists!');
return false;
}
}
// --------------------------------------------------------------------------
@ -322,14 +318,14 @@ class Todo {
->from('user')
->where('id', $user)
->get();
$row = $user_check->row();
if ( ! password_verify($old_pass, $row->password))
{
$err[] = "Wrong password";
}
$res = (empty($err)) ? true : $err;
if($res == TRUE)
@ -789,7 +785,7 @@ class Todo {
public function get_friend_requests()
{
static $requests = NULL;
if (is_null($requests))
{
//Get friend requests for the current user

Datei anzeigen

@ -531,12 +531,6 @@ class Task_model extends CI_Model {
$status = ($this->input->post('status') == FALSE) ? 1 : $this->input->post('status');
$created = time();
/*$title = $this->title;
$desc = $this->description;
$category = $this->category;
$priority = $this->priority;
$status = $this->status;
$created = $this->created;*/
$due = $this->due;
$uid = $this->user_id;

Datei anzeigen

@ -7,7 +7,7 @@
<property name="phploc" value="phploc"/>
<property name="phpmd" value="phpmd"/>
<property name="phpunit" value="phpunit"/>
<property name="sonar" value="sonar-runner"/>
<!-- <property name="sonar" value="sonar-runner"/> -->
<!-- Use this when the tools are located as PHARs in build/tools
<property name="pdepend" value="build/tools/pdepend.phar"/>
@ -28,7 +28,7 @@
<property name="phpunit" value="vendor/bin/phpunit"/> -->
<target name="full-build"
depends="prepare,static-analysis,phpunit,sonar,-check-failure"
depends="prepare,static-analysis,phpunit,-check-failure"
description="Performs static analysis, runs the tests, and generates project documentation"/>
<target name="full-build-parallel"
@ -249,11 +249,11 @@
<property name="phpunit.done" value="true"/>
</target>
<target name="sonar"
<!-- <target name="sonar"
depends="phpunit">
<exec executable="${sonar}" taskname="sonar"/>
<property name="sonar.done" value="true"/>
</target>
</target> -->
<target name="-check-failure">
<fail message="PHPUnit did not finish successfully">

Datei anzeigen

@ -1,30 +0,0 @@
build_settings:
verbose: true
ignore:
- "application/third_party"
- "web"
- "system"
- "third_party"
- "tests"
- "vendor"
- "migrations"
setup:
composer:
action: "install"
env:
APPLICATION_ENV: "development"
# shell:
# - "cd %BUILD_PATH% && vendor/bin/phinx migrate -e testing"
test:
php_unit:
config: 'tests/phpunit.xml'
run_from: 'tests'
php_mess_detector:
allowed_warnings: 10
rules:
- "unusedcode"
- "naming"
# php_docblock_checker:
# php_loc: