Skip to content

Commit aa60aec

Browse files
committed
Updated tests
1 parent 42c070b commit aa60aec

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@ notifications:
99
email:
1010
- team@appwrite.io
1111

12+
services:
13+
- docker
14+
1215
before_install:
13-
- sudo apt-get update
14-
- sudo apt-get install -y clamav clamav-daemon wget
15-
- sudo wget -O /var/lib/clamav/main.cvd http://database.clamav.net/main.cvd
16-
- sudo wget -O /var/lib/clamav/daily.cvd http://database.clamav.net/daily.cvd
17-
- sudo wget -O /var/lib/clamav/bytecode.cvd http://database.clamav.net/bytecode.cvd
18-
- sudo chown clamav:clamav /var/lib/clamav/*.cvd
19-
- sudo chown clamav:clamav /var/run/clamav
20-
- sudo chmod 750 /var/run/clamav
21-
- sudo clamd
16+
- docker-compose up -d
2217

2318
before_script: composer install
2419

tests/ClamAV/ClamAVTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ClamAVTest extends TestCase
3131

3232
public function setUp()
3333
{
34-
$this->network = new Network('127.0.0.1', 3310);
34+
$this->network = new Network('localhost', 3310);
3535
$this->pipe = new Pipe('clam');
3636
}
3737

0 commit comments

Comments
 (0)