forked from PaddlePaddle/PaddleHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 841 Bytes
/
.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
language: python
jobs:
include:
- name: "CI on Windows/Python3.6"
os: windows
language: shell
before_install:
- choco install python --version 3.6.2
- python -m pip install --upgrade pip
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "CI on MacOS/Python3.6"
os: osx
language: shell
- name: "CI on Linux/Python3.6"
os: linux
python: 3.6
script: /bin/bash ./scripts/check_code_style.sh
env:
- PYTHONPATH=${PWD}
install:
- if [[ $TRAVIS_OS_NAME == osx ]]; then
pip3 install --upgrade paddlepaddle;
pip3 install -r requirements.txt;
else
pip install --upgrade paddlepaddle;
pip install -r requirements.txt;
pip install yapf==0.26.0;
fi
notifications:
email:
on_success: change
on_failure: always