-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (51 loc) · 1.47 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
language: minimal
_linux: &linux
os: linux
language: python
python: "3.6"
services:
- xvfb
_macos: &macos
os: osx
# Travis CI uses macOS 10.13 and Xcode 9.4.1 by default; this is 10.14
osx_image: xcode11.3
language: generic
# travis-ci also supports Windows, but the Windows support is non-GUI
stages:
- lint
- test
env:
global:
- PACKAGE="Constellation"
- UNITTESTING_TAG="master"
before_install: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/${UNITTESTING_TAG}/sbin/travis.sh
install: sh ./travis.sh bootstrap
script: sh ./travis.sh run_tests --coverage
jobs:
fast_finish: true
include:
- <<: *linux
env: SUBLIME_TEXT_VERSION="3"
- <<: *macos
env: SUBLIME_TEXT_VERSION="3"
- <<: *linux
env: SUBLIME_TEXT_VERSION="4"
# this should eventually run, but we'll be polite about limited macOS CI resources until there's a nonzero chance of it actually completing
# - <<: *macos
# env: SUBLIME_TEXT_VERSION="4"
# lint stage runs first, but defining it last to avoid
# having to explicitly specify test phase for other jobs
- stage: lint
os: linux # no need to run on another os
env: # none
language: python
before_install: # none
install:
- pip install black
script: black --check --target-version py33 --target-version py38
allow_failures:
env: SUBLIME_TEXT_VERSION="4"
notifications:
email:
on_success: change
on_failure: change