language: c
cache:
  directories:
      - "$HOME/.cache"
      - "$HOME/.ccache"
before_install:
    - ccache -s
    - export PATH=/usr/lib/ccache:${PATH}
    - wget https://package-data.enthought.com/edm/rh5_x86_64/1.4/edm_1.4.1_linux_x86_64.sh && bash ./edm_1.4.1_linux_x86_64.sh -b -p $HOME
    - export PATH=${HOME}/edm/bin:${PATH}
    - edm environments create --version 3.5 force 
    - . $HOME/.edm/envs/force/bin/activate 
    - cat requirements/edm_requirements.txt | grep -v "^#" | while read line; do edm install -y `echo $line | awk '{print $1"=="$2}'`; done 
install:
    - pip install -r requirements/requirements.txt
    - pip install -e .
script:
    - pip install -r requirements/dev_requirements.txt
    - flake8 .
