1
0
mirror of https://github.com/ansible/galaxy.git synced 2026-02-05 09:45:11 +01:00
Files
galaxy/.travis.yml
2021-05-17 16:23:35 +02:00

64 lines
1.1 KiB
YAML

---
language: python
python: 3.6
sudo: required
env:
- PYTHONUNBUFFERED=1
services:
- docker
# TODO(cutwater): Do we need this?
# before_install:
# - sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
# - sudo apt-get update -qq
install:
- pip install ansible flake8 yamllint
script:
# run flake8
- make test/flake8
# run yamllint
- make test/yamllint
# build images
- make build/docker-dev
# TODO(cutwater): Run tests locally
# start the application
- make dev/up_detached
- make dev/waitenv
- make dev/shellcheck
- make dev/checkmigrations
- make dev/test
# check images running
- docker ps -a
- docker images
- docker-compose -f scripts/docker/dev/compose.yml -p galaxy logs galaxy
# Run simple web server test
- pushd testing/simple
- ansible-playbook -i inventory test.yml
- popd
# Run JavaScript test
- make dev/jslint
- make test/prettier
# Check the logs
- docker ps -a
- make dev/log
# Stop the application
- make dev/down
# Build release image
- |
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
make build/release
fi