forked from PaddlePaddle/paddle_upgrade_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (66 loc) · 1.74 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
branches:
only:
- master
language: python
os:
- linux
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
jobs:
include:
- name: "python: 3.5 on macOS"
os: osx
osx_image: xcode11
language: shell
env: PYTHON=35
before_script:
- python3 --version
script:
- python3 -m unittest discover paddle_upgrade_tool/tests/
- python3 setup.py sdist bdist_wheel
- pip3 install dist/paddle_upgrade_tool*.whl
- cd ..
- python3 -m unittest discover paddle_upgrade_tool.tests.test_refactor
after_success: ""
- name: "python: 3.5 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.5.4
- python -m pip install --upgrade pip
- pip3 install wheel
script:
- python -m unittest discover paddle_upgrade_tool/tests/
- python setup.py sdist bdist_wheel
- pip3 install dist/paddle_upgrade_tool*.whl
- cd ..
- python -m unittest discover paddle_upgrade_tool.tests.test_refactor
after_success: ""
env: PATH=/c/Python35:/c/Python35/Scripts:$PATH
before_install:
- echo "this is before_install"
before_script:
- echo "this is before_script"
- python --version
script:
- echo "this is script"
- |
(
python -m unittest discover paddle_upgrade_tool/tests/
python setup.py sdist bdist_wheel
pip3 install dist/paddle_upgrade_tool*.whl
cd ..
python -m unittest discover paddle_upgrade_tool.tests.test_refactor
paddle_upgrade_tool -h
pip3 install pytest-cov coveralls
cd paddle_upgrade_tool
pytest --cov=paddle_upgrade_tool
)
after_script:
- echo "this is after_script"
after_success:
- echo "this is after_success"
- coveralls