Skip to content

Commit

Permalink
fix : travis config fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Feb 12, 2019
1 parent 6be0a17 commit d101455
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
25 changes: 2 additions & 23 deletions .travis.yml
@@ -1,47 +1,26 @@
sudo: true

language: python

matrix:
include:
- os: linux
sudo: required
python: 3.7
env: TOXENV=py37-linux
dist: xenial

- os: linux
sudo: required
python: 3.6
env: TOXENV=py36-linux

- os: linux
sudo: required
python: 3.5
env: TOXENV=py35-linux

- os: linux
sudo: required
python: 3.4
env: TOXENV=py34-linux

# - os: osx
# language: generic
# env: TOXENV=py37-osx

- os: osx
language: generic
env: TOXENV=py36-osx

# - os: osx
# language: generic
# env: TOXENV=py35-osx

# - os: osx
# language: generic
# env: TOXENV=py34-osx

install: bash .travis/install.sh
install:
- bash .travis/install.sh

script:
- bash .travis/test.sh
Expand Down
9 changes: 1 addition & 8 deletions .travis/install.sh
@@ -1,9 +1,2 @@
#!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
pip3 install tox
exit 0
fi
pip install -r requirements.txt
python setup.py install
# Make sure tox is installed and up to date
pip install -U tox
pip install -r dev-requirements.txt
5 changes: 3 additions & 2 deletions .travis/test.sh
@@ -1,9 +1,10 @@
#!/bin/bash
# Dump Environment (so that we can check PATH, UT_FLAGS, etc.)
set
set -e
set -x

python version_check.py
python -m bandit -r opem -s B322
python -m vulture --min-confidence 80 --exclude=opem,build,.eggs --sort-by-size .
tox -- --cov=opem --cov-report=term
python -m pytest opem/Test --cov=opem --cov-report=term
python -m cProfile -s cumtime opem/Profile.py

0 comments on commit d101455

Please sign in to comment.