forked from ansible/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (46 loc) · 1.03 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: python
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
script:
# run flake8
- make test/flake8
# 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/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
after_success:
- scripts/travis-publish-image.sh