forked from whaledr/cetus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 1.21 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
env:
- PYTHON_VERSION="3.5"
# command to install dependencies
os:
- linux
install:
# Install conda
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda update --yes conda
- conda create --yes -n ci "python=$PYTHON_VERSION"
- source activate ci
- which python
- which pip
- python --version
- pip --version
# command to install dependencies
- pip install coveralls
- pip install flake8
- pip install nose
- pip install pandas
- pip install boto3
# command to run tests
script:
- echo "Run script here"
after_success:
- echo "Finished"
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
git config user.email "[email protected]";
git config user.name "travis";
git pull;
cd data;
python files_counter.py;
git add Readme.md;
git commit --allow-empty -m "updated README.md";
git push https://pshivraj:$GITHUB_API_KEY@$GITHUB_URL_MASTER HEAD:master;
fi
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ] ; then echo "Non cron job process" ; fi