|
| 1 | +# Copyright ©2017. The Regents of the University of California (Regents). |
| 2 | +# All Rights Reserved. Permission to use, copy, modify, and distribute this |
| 3 | +# software and its documentation for educational, research, and not-for-profit |
| 4 | +# purposes, without fee and without a signed licensing agreement, is hereby |
| 5 | +# granted, provided that the above copyright notice, this paragraph and the |
| 6 | +# following two paragraphs appear in all copies, modifications, and |
| 7 | +# distributions. Contact The Office of Technology Licensing, UC Berkeley, 2150 |
| 8 | +# Shattuck Avenue, Suite 510, Berkeley, CA 94720-1620, (510) 643-7201, |
| 9 | + |
| 10 | +# http://ipira.berkeley.edu/industry-info for commercial licensing opportunities. |
| 11 | + |
| 12 | +# IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, |
| 13 | +# INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF |
| 14 | +# THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS BEEN |
| 15 | +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 16 | + |
| 17 | +# REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 18 | +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 19 | +# PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED |
| 20 | +# HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE |
| 21 | +# MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 22 | +language: python |
| 23 | + |
| 24 | +matrix: |
| 25 | + include: |
| 26 | + - name: "Python 2.7 on Xenial Linux" |
| 27 | + python: 2.7 |
| 28 | + dist: xenial |
| 29 | + |
| 30 | + - name: "Python 3.5 on Xenial Linux" |
| 31 | + python: 3.5 |
| 32 | + dist: xenial |
| 33 | + |
| 34 | + - name: "Python 3.6 on Xenial Linux" |
| 35 | + python: 3.6 |
| 36 | + dist: xenial |
| 37 | + |
| 38 | + - name: "Python 3.7 on Xenial Linux" |
| 39 | + python: 3.7 |
| 40 | + dist: xenial |
| 41 | + |
| 42 | + - name: "Linter" |
| 43 | + python: 3.7 |
| 44 | + dist: xenial |
| 45 | + before_install: [] |
| 46 | + install: [] |
| 47 | + script: |
| 48 | + - pip install yapf==0.27.0 # Must use specific version. |
| 49 | + - pip install flake8 flake8-comprehensions flake8-quotes==2.0.0 |
| 50 | + - ./ci/travis/format.sh --all # Should exit with 0 for no diffs. |
| 51 | + - flake8 |
| 52 | + |
| 53 | +before_install: |
| 54 | + - sudo apt-get update |
| 55 | + - sudo apt-get install -y python-opengl # For GLU. |
| 56 | + |
| 57 | +install: |
| 58 | + - pip install . |
| 59 | + |
| 60 | +script: |
| 61 | + - python -c "import gqcnn" |
| 62 | + |
| 63 | +notifications: |
| 64 | + email: false |
0 commit comments