forked from ansible/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (40 loc) · 1.04 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
language: python
dist: trusty
sudo: required
group: deprecated-2017Q4
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:
- python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
# 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/test
# check images running
- docker ps -a
- docker images
- docker-compose -f scripts/compose-dev.yml -p galaxy logs galaxy
# Run simple web server test
- pushd testing/simple
- ansible-playbook -i inventory test.yml
- popd
# Stop the application
- make dev/down
# Build release image
- |
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
make build/docker-release
fi
after_success:
- scripts/travis-publish-image.sh