forked from oils-for-unix/oils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (43 loc) · 1.36 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
# https://docs.travis-ci.com/user/reference/xenial/#python-support
# It says Xenial has Python 2.7, 3.6, and 3.7 (?)
# We're not using language: python because that creates a virtualenv, which is
# specific to a Python version. MyPy needs both in the same environment.
dist: xenial
cache: pip
addons:
apt:
packages:
# build/dev.sh ubuntu-deps
- python-dev
- gawk
- time
- libreadline-dev
# test/spec.sh install-shells
- busybox-static
- mksh
- zsh
# since we're not using language: python
- python-pip
- python3-pip
before_install:
- test/spec.sh link-busybox-ash
install:
- pip install --user flake8 typing
# mypy requires Python 3
- pip3 install --user mypy
- build/dev.sh minimal
script:
# Type checking with MyPy. Problem: mypy requires Python 3, but Oil
# requires Python 2. The Travis environment doesn't like that.
- types/run.sh iter-demo-asdl
- types/run.sh iter-arith-asdl
- test/lint.sh travis
# Unit tests
- test/unit.sh all
# Spec tests
- test/spec.sh smoke
# TODO: get other spec tests running on Travis.
# - test/spec.sh all
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down