浏览代码

[ADD] Added new travis file.

Sudhir Arya 8 年之前
父节点
当前提交
b9f178d25d
共有 1 个文件被更改,包括 18 次插入8 次删除
  1. 18 8
      .travis.yml

+ 18 - 8
.travis.yml

@@ -2,25 +2,35 @@ language: python
 
 
 python:
 python:
   - "2.7"
   - "2.7"
+  
+sudo: false
+cache: pip
+
+addons:
+  apt:
+    packages:
+      - expect-dev  # provides unbuffer utility
+      - python-lxml  # because pip installation is slow
 
 
 env:
 env:
-  - VERSION="8.0" LINT_CHECK="1"
-  - VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0"
-  - VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0"
-  - VERSION="8.0" UNIT_TEST="1" LINT_CHECK="0"
+  - VERSION="9.0" LINT_CHECK="1"
+  - VERSION="9.0" ODOO_REPO="odoo/odoo" TESTS="1" LINT_CHECK="0"
+  - VERSION="9.0" ODOO_REPO="OCA/OCB" TESTS="1" LINT_CHECK="0"
+  - VERSION="9.0" UNIT_TEST="1" LINT_CHECK="0"
 
 
 virtualenv:
 virtualenv:
   system_site_packages: true
   system_site_packages: true
 
 
 install:
 install:
+  - pip install anybox.testing.openerp
   - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
   - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
   - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
   - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
   - travis_install_nightly
   - travis_install_nightly
-  - sudo pip install python-ldap lxml
-  - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc
-  - ln -s server_environment_files_sample ./server_environment_files
+# example: dependency
+# - git clone https://github.com/OCA/webkit-tools -b ${VERSION} $HOME/webkit-tools
+
 script:
 script:
   - travis_run_tests
   - travis_run_tests
 
 
 after_success:
 after_success:
-  coveralls
+  - travis_after_tests_success