forked from pskuza/Rclonewrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dist: trusty
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
before_install:
- wget https://downloads.rclone.org/rclone-current-linux-amd64.zip
- unzip rclone-current-linux-amd64.zip
- find . -name rclone | xargs cp -t .
- openssl aes-256-cbc -K $encrypted_ff94d2327762_key -iv $encrypted_ff94d2327762_iv -in rclone.conf.enc -out rclone.conf -d
- dd if=/dev/urandom of=testfile.dat bs=10M count=1
- mkdir testdir
- mkdir testdir/test1
- mkdir testdir/test2
- mkdir testdir/test3
- mkdir testdir/test4
- mkdir testdir/test5
- dd if=/dev/urandom of=testdir/test1/testfile.dat bs=1M count=1
- dd if=/dev/urandom of=testdir/test2/testfile.dat bs=2M count=1
- dd if=/dev/urandom of=testdir/test3/testfile.dat bs=3M count=1
- dd if=/dev/urandom of=testdir/test4/testfile.dat bs=4M count=1
- dd if=/dev/urandom of=testdir/test5/testfile.dat bs=5M count=1
- ls -lR
install:
- composer install
before_script:
- curl http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o php-cs-fixer.phar
script:
- php php-cs-fixer.phar fix -v --dry-run --diff src
- "./vendor/bin/phpunit"