-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
44 lines (41 loc) · 2.11 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
39
40
41
42
43
44
language: python
cache: false
python:
- 3.7.4
install:
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -q -n test-environment -f rec_to_nwb/environment.yml python=$TRAVIS_PYTHON_VERSION
- conda activate test-environment
- conda list
- conda config --add channels conda-forge
- conda config --add channels novelakrk
- pip install pylint
- if [ $TRAVIS_BRANCH == "master_release" ]; then
conda install conda-build anaconda-client conda-verify;
bash upload_dependencies.sh;
conda build .;
conda install rec_to_nwb --use-local;
else python setup.py install --single-version-externally-managed --record=record.txt; fi
- if [ $TRAVIS_EVENT_TYPE == 'cron' ]; then
conda install conda-build anaconda-client conda-verify;
conda build .;
conda install rec_to_nwb --use-local; fi
- chown -R $USER:$USER rec_to_nwb/test/
script:
- bash pylint_run.sh
- python -m pytest rec_to_nwb/test/processing
after_success:
- test $TRAVIS_BRANCH = "master_release" && bash conda_upload.sh
notifications:
slack:
rooms:
- secure: "ljoKdWUXfNwnSWqrfgw8/b6u2Z2f5/d0iSsDWOLg6c+dTM57+1GE+SEjjgz3sBX8HEoyzfU0k8b38XVl3uRrO1ABuy196WZhb1KRxxNQX4H+z2ywnZ3XEJ2dx7CmFfOujvSuA/jYQhGPScEl10YIZ3DqmnKXsQulDQH86ivrLGvc5oiAcBww+Z4sAqMiTAK4LJWOW2kvz27OjoHn3QmhLuOwVOnvpov45bvlJ6Ge7gcwmt+32rNOS8G4Rz3RDTZCanj7UXFhsufXP5PKhEF8to6m6OIzNeVAvglixUmvynGHgJDD+3+OjdIthdm1YwL8wPC0WdyJJybSPT2EFe8DYKS2it+l/K5CAlXJs+5ZU1LQsVduQ9FS2HKCiK+XECma/6ivyZzwvfxuLye/pRAnBI0GuXQyuLLgdU08NMJVXLBr1W8U+sqoMMdzRZGp8e1NMzgeXatrG/yuwXRuAgN8JmiswzP2bPbubCBrM7ARbcYDYU/chCRwhaTK4RiY2PHKSaYvBbqah3Ep9PeNsjCBuYEs9//s+DLf80p9Cm5NZ/tfHNL/83j91CGpTy6qOPKm06TfY+ZbUaaKae7ZH/Rxp+PSmMG3CHIJ5ghuL0PHNGPbkIKe5BdJzoP8QwcPQX2uYSxua67cDJ7FPj9gEG4osd13f61Hbyu29xEr53JHfYQ="