2021-08-19 00:54:30 +12:00
|
|
|
dist: focal
|
2021-01-19 18:03:18 +13:00
|
|
|
|
2020-09-27 20:32:16 +13:00
|
|
|
arch:
|
|
|
|
- amd64
|
2021-08-19 00:54:30 +12:00
|
|
|
- arm64-graviton2
|
2020-09-27 20:32:16 +13:00
|
|
|
|
|
|
|
os: linux
|
|
|
|
|
2021-09-16 23:34:23 +12:00
|
|
|
# Small change to check build failure
|
2021-09-16 19:59:20 +12:00
|
|
|
vm:
|
2021-09-16 23:34:23 +12:00
|
|
|
size: large
|
|
|
|
|
2021-01-19 17:59:54 +13:00
|
|
|
language: shell
|
2020-10-13 21:51:41 +13:00
|
|
|
|
2019-08-07 09:01:52 +12:00
|
|
|
notifications:
|
|
|
|
email:
|
2019-09-22 04:54:18 +12:00
|
|
|
- team@appwrite.io
|
2019-08-26 16:56:01 +12:00
|
|
|
|
2020-07-06 08:37:41 +12:00
|
|
|
before_install:
|
2021-01-15 11:33:41 +13:00
|
|
|
- curl -fsSL https://get.docker.com | sh
|
|
|
|
- echo '{"experimental":"enabled"}' | sudo tee /etc/docker/daemon.json
|
|
|
|
- mkdir -p $HOME/.docker
|
|
|
|
- echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
|
|
|
|
- sudo service docker start
|
|
|
|
- >
|
|
|
|
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
|
2021-01-17 04:10:20 +13:00
|
|
|
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
|
2021-01-15 11:33:41 +13:00
|
|
|
fi
|
|
|
|
- docker --version
|
2021-01-19 17:59:54 +13:00
|
|
|
- docker buildx create --use
|
|
|
|
- chmod -R u+x ./.travis-ci
|
2021-01-30 23:37:17 +13:00
|
|
|
- export COMPOSE_INTERACTIVE_NO_CLI=1
|
2021-04-30 03:08:59 +12:00
|
|
|
# Only pass a single runtime for CI stability
|
2021-05-05 03:42:29 +12:00
|
|
|
- echo "_APP_FUNCTIONS_RUNTIMES=php-8.0" >> .env
|
2020-07-06 08:37:41 +12:00
|
|
|
|
2019-08-26 16:56:01 +12:00
|
|
|
install:
|
2021-08-19 01:25:29 +12:00
|
|
|
- docker-compose up -d --build
|
2021-04-28 22:48:02 +12:00
|
|
|
- sleep 10
|
2019-08-26 16:56:01 +12:00
|
|
|
|
2019-08-07 09:01:52 +12:00
|
|
|
script:
|
2021-05-05 10:16:25 +12:00
|
|
|
- docker ps -a
|
2021-04-27 04:22:29 +12:00
|
|
|
- docker-compose logs appwrite
|
2021-05-05 10:16:25 +12:00
|
|
|
- docker-compose logs mariadb
|
2021-05-05 10:38:09 +12:00
|
|
|
- docker-compose logs appwrite-worker-functions
|
|
|
|
- docker-compose exec appwrite doctor
|
|
|
|
- docker-compose exec appwrite vars
|
|
|
|
- docker-compose exec appwrite test --debug
|
2021-08-17 16:06:42 +12:00
|
|
|
- docker-compose logs appwrite
|
2021-05-05 10:38:09 +12:00
|
|
|
|
2021-08-19 02:14:34 +12:00
|
|
|
after_failure:
|
|
|
|
- docker-compose logs appwrite
|
|
|
|
|
2021-05-05 10:38:09 +12:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
edge: true
|
|
|
|
script: ./.travis-ci/deploy.sh
|
|
|
|
on:
|
|
|
|
repo: appwrite/appwrite
|
|
|
|
branch: deploy
|