forked from banago/PHPloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (16 loc) · 808 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sudo: required
services:
- docker
language: php
php:
- 5.5
before_install:
- composer self-update
- mkdir -p "/tmp/PHPloyTestWorkspace/sftp_share/share"
- mkdir -p "/tmp/PHPloyTestWorkspace/ftp_share/share"
- sudo chmod -R 777 "/tmp/PHPloyTestWorkspace/ftp_share"
- docker run --name sftp_testserver -d -v /tmp/PHPloyTestWorkspace/sftp_share:/home/sftpuser -p 2222:22 atmoz/sftp sftpuser:password:$(id -u)
- docker run --name ftp_testserver -d -v /tmp/PHPloyTestWorkspace/ftp_share:/home/ftpusers/ftpuser -v $TRAVIS_BUILD_DIR/tests/ftp_setup.sh:/root/ftp_setup.sh -p 21:21 -p 30000-30009:30000-30009 -e "PUBLICHOST=localhost" stilliard/pure-ftpd:hardened /root/ftp_setup.sh
install:
- travis_retry composer install --no-interaction --prefer-source
script: ./vendor/bin/phpunit tests