diff --git a/.travis.yml b/.travis.yml index 2eab1d0527..d6ff474448 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,9 @@ language: php + php: - - '7.0' - '7.1' - '7.2' - '7.3' - - hhvm # on Trusty only - - nightly addons: hosts: @@ -15,8 +13,17 @@ notifications: email: - eldad@appwrite.io -install: +services: +- docker + +before_install: - composer update --ignore-platform-reqs --optimize-autoloader --no-dev --no-plugins --no-scripts +install: +- docker-compose up -d -f tests/resources/docker-compose.yml +- sleep 60 + script: -- php -v \ No newline at end of file +- php -v +- ls storage +- ls tests/reosurces/storage \ No newline at end of file diff --git a/app/tests/resources/docker-compose.yml b/app/tests/resources/docker-compose.yml new file mode 100644 index 0000000000..f9f69e287e --- /dev/null +++ b/app/tests/resources/docker-compose.yml @@ -0,0 +1,65 @@ +version: '3' + +services: + appwrite: + build: . + restart: unless-stopped + volumes: + - ./tests/resources/storage:/storage:rw + ports: + - "80:80" + - "443:443" + environment: + - _APP_ENV=development + - _APP_OPENSSL_KEY_V1=just-a-random-key + - _APP_REDIS_HOST=redis + - _APP_REDIS_PORT=6379 + - _APP_DB_HOST=mariadb + - _APP_DB_PORT=3306 + - _APP_DB_SCHEMA=appwrite + - _APP_DB_USER=root + - _APP_DB_PASS=password + - _APP_INFLUXDB_HOST=influxdb + - _APP_INFLUXDB_PORT=8086 + - _APP_STATSD_HOST=telegraf + - _APP_STATSD_PORT=8125 + + mariadb: + image: appwrite/mariadb:1.0.0 + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD=password + #volumes: + #- ./storage/db:/var/lib/mysql:rw + ports: + - 3306:3306/tcp + + smtp: + image: appwrite/smtp:1.0.0 + environment: + - MAILNAME=appwrite + - RELAY_NETWORKS=:192.168.0.0/24:10.0.0.0/16 + ports: + - "25:25" + + clamav: + image: appwrite/clamav:1.0.4 + restart: unless-stopped + volumes: + - ./tests/resources/storage:/storage:rw + + redis: + image: redis:5.0 + restart: unless-stopped + + influxdb: + image: influxdb:1.6 + volumes: + - ./tests/resources/storage/influxdb:/var/lib/influxdb + ports: + - "8086:8086" + + telegraf: + image: appwrite/telegraf:1.0.0 + ports: + - "8125:8125/udp" \ No newline at end of file