forked from ColdGrub1384/Pyto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1.24 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
# https://docs.travis-ci.com/user/reference/osx
# https://docs.travis-ci.com/user/languages/objective-c
# https://github.com/realm/SwiftLint
group: travis_latest
os: osx
osx_image: xcode11
language: objective-c
xcode_project: Pyto.xcodeproj
xcode_workspace: Pyto.xcworkspace
# xcode_scheme: MyNewProjectTests
xcode_destination: platform=iOS Simulator,OS=13.0,name=iPad Pro (9.7-inch)
# xcode_sdk: iphonesimulatorX.Y
before_install:
- sw_vers
# - brew upgrade python swiftlint
- python3 --version ; pip3 --version
- pip3 install --upgrade pip
install:
# - pip3 install -r requirements.txt
- pip3 install flake8
before_script:
- EXCLUDE=./.*,./Pyto_Mac/mac-site-packages,./Pyto_Mac/pip,./Pyto_Mac/PyObjC,./site-packages,./python3_ios/*
- flake8 . --count --exclude=${EXCLUDE} --select=E9,F63,F7,F82 --show-source --statistics
- EXCLUDE=./.*,./Pyto*,./*site-packages,./python3_ios/*
- flake8 . --count --exclude=${EXCLUDE} --max-complexity=10 --ignore=E501 --show-source --statistics
- flake8 --count --ignore=E501 "Lib/pyto_ui.py"
#- swiftlint # Done linting! Found 2225 violations, 91 serious in 82 files.
script:
- ./setup.sh
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down