-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (40 loc) · 1.46 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
sudo: required
language: python
cache: pip
git:
depth: false
quiet: true
python: # The following versions
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# command to install dependencies
build:
stage: build
only:
- paths:
- "^codes/*"
install:
- pip install numpy
- pip install matplotlib
- pip install pandas
- pip install seaborn
- pip install pathlib
- pip install tensorflow_datasets
- pip install scikit-image
# install TensorFlow from https://storage.googleapis.com/tensorflow/
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.3.0-cp36-cp36m-manylinux2010_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.3.0-cp37-cp37m-manylinux2010_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.3.0-cp38-cp38m-manylinux2010_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.9" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.3.0-cp39-cp39m-manylinux2010_x86_64.whl;
fi
script:
# You can run all python files in parallel, http://stackoverflow.com/questions/5015316
# - find codes/python/ -type f -name "*.py" |xargs -n 1 python
# get list of changed files and if they are Python files, run them.
- ./travis.sh