-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
36 lines (36 loc) · 1.08 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
services:
- docker
language: python
python:
- "3.6"
- "3.7"
- "3.8"
os:
- linux
before_install:
- python --version
install:
- pip install -r test-requirements.txt
- python setup.py install
- pip freeze
# there is a issue in repo2docker in travis. fix file permission
- chmod +x $(python -c "import repo2docker; print(repo2docker.__file__[:-11])")/buildpacks/repo2docker-entrypoint
script:
- pycodestyle --max-line-length=119 $(find ipython2cwl -name '*.py')
- coverage run --source ipython2cwl -m unittest discover tests
- coveralls
- make mypy
matrix:
include:
- name: "Python 3.7 on macOS 10.13"
os: osx
osx_image: xcode9.4 # Python 3.7 running on macOS 10.13
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- python3 --version
- pip3 install virtualenv
- virtualenv -p python3 venv
- source venv/bin/activate
- pip3 install -U -r test-requirements.txt
script: coverage run --source ipython2cwl -m unittest discover tests
env: TRAVIS_IGNORE_DOCKER=true