Skip to content

Commit 5653d2e

Browse files
committed
Removed codeclimate
1 parent 840e232 commit 5653d2e

File tree

17 files changed

+64
-15
lines changed

17 files changed

+64
-15
lines changed

.env-example

100644100755
File mode changed.

.gitignore

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
*.sql
33
shunit*
44
!samples/**/*
5+
coverage/*
6+
!coverage/.gitkeep

.travis.yml

100644100755
Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: bash
2-
cache: bundler
32
dependencies:
43
cache_directories:
54
- "~/.apt-cache"
@@ -14,11 +13,33 @@ addons:
1413
packages:
1514
- mysql-server
1615
- mysql-client
17-
before_script:
18-
- curl -L "http://downloads.sourceforge.net/shunit2/shunit2-2.0.3.tgz" | tar zx
19-
- chmod +x ./shunit2-2.0.3/src/shell/shunit2
20-
script:
21-
- bash tests.sh
16+
- libcurl4-openssl-dev
17+
- libelf-dev
18+
- libdw-dev
19+
- cmake
20+
21+
before_script: |
22+
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
23+
tar xzf master.tar.gz &&
24+
cd kcov-master &&
25+
mkdir build &&
26+
cd build &&
27+
cmake .. &&
28+
make &&
29+
sudo make install &&
30+
cd ../.. &&
31+
rm -rf kcov-master &&
32+
kcov --version
33+
2234
before_install:
2335
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('testbench'), host='%', password_last_changed=FROM_UNIXTIME(1523829600) where User='root'; update user set plugin='mysql_native_password'; delete from user where User != 'root' OR host != '%'; delete from user where User = 'sys'; FLUSH PRIVILEGES;"
24-
- sudo service mysql restart
36+
- sudo service mysql restart
37+
- "[ -f shunit2-2.0.3.tgz ] || wget http://downloads.sourceforge.net/shunit2/shunit2-2.0.3.tgz -O shunit2-2.0.3.tgz"
38+
- tar zxf shunit2-2.0.3.tgz && rm shunit2-2.0.3.tgz
39+
- chmod +x ./shunit2-2.0.3/src/shell/shunit2
40+
41+
script:
42+
- kcov --include-pattern=backup.sh,tests.sh --exclude-pattern=coverage coverage ./tests.sh
43+
44+
after_success:
45+
- bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# sql-backup
22
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8b72cd7316b745ed838b739cef3ebd38)](https://app.codacy.com/app/williamdes/sql-backup?utm_source=github.com&utm_medium=referral&utm_content=williamdes/sql-backup&utm_campaign=badger)
3-
[![Maintainability](https://api.codeclimate.com/v1/badges/9af0b964df176436608d/maintainability)](https://codeclimate.com/github/williamdes/sql-backup/maintainability)
4-
53
[![Build Status](https://travis-ci.org/williamdes/sql-backup.svg?branch=master)](https://travis-ci.org/williamdes/sql-backup)
4+
[![codecov](https://codecov.io/gh/williamdes/sql-backup/branch/master/graph/badge.svg)](https://codecov.io/gh/williamdes/sql-backup)
65

76
Backup your MySQL server ( data, users, grants, views, triggers, routines, events )
87

backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@ sed -i -e 's/\\\\//g' ${BACKUP_DIR}/grants.sql
205205
echo "Backup done !"
206206

207207
if [ ! -z "${ON_SUCCESS}" ]; then
208-
`echo ${ON_SUCCESS}`
208+
echo "$(${ON_SUCCESS})"
209209
fi
210210
exit 0

postTest.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo "$(date --utc --rfc-email)" > "$(dirname $0)/test/endfile"

samples/empty/database.sql

100644100755
File mode changed.

samples/empty/events.sql

100644100755
File mode changed.

0 commit comments

Comments
 (0)