瀏覽代碼

Merge pull request #487 from spk/travis-fix-sudo

Fix travis build by fixing ansible-lint version
Allen Riddell 9 年之前
父節點
當前提交
c70a2fa774
共有 3 個檔案被更改,包括 7 行新增2 行删除
  1. 6
    1
      .travis.yml
  2. 0
    1
      requirements.txt
  3. 1
    0
      test-requirements.txt

+ 6
- 1
.travis.yml 查看文件

1
 language: python
1
 language: python
2
 python: "2.7"
2
 python: "2.7"
3
+cache:
4
+  directories:
5
+    - $HOME/.cache/pip
3
 install:
6
 install:
4
-  - pip install ansible ansible-lint
7
+  # TODO: use requirements.txt when ansible updated to >= 1.9
8
+  - pip install ansible
9
+  - pip install -r test-requirements.txt
5
 script:
10
 script:
6
   - ansible-playbook --syntax-check -i hosts site.yml
11
   - ansible-playbook --syntax-check -i hosts site.yml
7
   - ansible-lint site.yml
12
   - ansible-lint site.yml

+ 0
- 1
requirements.txt 查看文件

1
 ansible==1.6.6
1
 ansible==1.6.6
2
-

+ 1
- 0
test-requirements.txt 查看文件

1
+ansible-lint==2.3.6

Loading…
取消
儲存