-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
38 lines (33 loc) · 1.23 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
37
38
# Config file for automatic testing at travis-ci.org
language: python
python: "3.7"
# Python 3.7 works only in Xenial with sudo
# https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
dist: xenial
sudo: yes
# Cache modules for faster builds
cache:
timeout: 1000
pip: true
npm: true
install:
# Install miniconda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh
- bash $HOME/miniconda.sh -b -u -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
# Install conda packages
- conda install -y -q colorama h5py lxml matplotlib pandas pytest seaborn sqlalchemy tzlocal
# Install pip modules
- pip install flake8 pep8-naming flake8-gramex flake8-blind-except flake8-print flake8-debugger bandit nose
# Install node.js and npm packages
- nvm install 12
- npm install --global eclint eslint eslint-plugin-html eslint-plugin-template htmllint-cli
# Set up variables
- export BRANCH=$TRAVIS_BRANCH
script:
- eclint check '**/*.html' '**/*.js' '**/*.css' '**/*.yaml' '**/*.md'
- eslint .
- find . -name '*.html' | grep -v node_modules | grep -v newsletter/ | xargs htmllint
- flake8