diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2020-01-02 16:25:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 16:25:37 +0100 |
commit | 25250c8c24a3c0b32c92eee5552ad7156115f03c (patch) | |
tree | 02c178a19be0e233813600531c85ef7ad5e4c51c /.travis.yml | |
parent | 027a2fa61a6044b2e967b29195312e4d98a96078 (diff) | |
parent | a3c4b3d5444e5d79afbd823a9acc12220a91f41f (diff) | |
download | ansible-kong-app-25250c8c24a3c0b32c92eee5552ad7156115f03c.tar.gz ansible-kong-app-25250c8c24a3c0b32c92eee5552ad7156115f03c.tar.zst ansible-kong-app-25250c8c24a3c0b32c92eee5552ad7156115f03c.zip |
Merge pull request #18 from paulrbr-fl/pre-function-pluginsv0.30
config(dhall): add a pre-function lua definition for HTTPS redirects
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 7bf8ed8..14ab868 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,25 +1,36 @@ | |||
1 | --- | 1 | --- |
2 | language: nix | 2 | language: nix |
3 | nix: 2.3.1 | ||
4 | |||
3 | 5 | ||
4 | # Use the new container infrastructure | 6 | # Use the new container infrastructure |
5 | sudo: false | 7 | sudo: false |
6 | 8 | ||
7 | install: | 9 | install: |
10 | # Update nix channels | ||
11 | - nix-channel --add https://nixos.org/channels/nixpkgs-19.09-darwin nixpkgs | ||
12 | - nix-channel --remove nixpkgs-unstable | ||
13 | - nix-channel --update | ||
14 | |||
8 | # Install ansible | 15 | # Install ansible |
9 | - nix-env -i python2.7-ansible python2.7-ansible-lint | 16 | - nix-env -i python3 ansible ansible-lint |
10 | - nix-env -if ./dhall-1.26.1.nix | 17 | - nix-env -if ./dhall-1.26.1.nix |
11 | 18 | ||
12 | # Check ansible version | 19 | # Check ansible version |
13 | - ansible --version | 20 | - ansible --version |
21 | - ansible-lint --version | ||
14 | 22 | ||
15 | # Create ansible.cfg with correct roles_path | 23 | # Create ansible.cfg with correct roles_path |
16 | - printf '[defaults]\nroles_path=../' >ansible.cfg | 24 | - printf '[defaults]\nroles_path=../' >ansible.cfg |
25 | # Basic webserver to fake a Kong | ||
26 | - | | ||
27 | ./tests/kong.py& | ||
17 | 28 | ||
18 | script: | 29 | script: |
19 | # Basic role syntax check | 30 | # Basic role syntax check |
20 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check | 31 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check |
21 | - ansible-lint . | 32 | - ansible-lint . |
22 | - ansible-playbook tests/test.yml -i tests/inventory -C -D | 33 | - ansible-playbook tests/test.yml -i tests/inventory -D |
23 | - scripts/dhall_check.sh | 34 | - scripts/dhall_check.sh |
24 | 35 | ||
25 | notifications: | 36 | notifications: |