forked from fishilico/home-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
172 lines (159 loc) · 4.34 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Use http://lint.travis-ci.org/ to check the syntax of this file
language: python
matrix:
include:
# Ubuntu 20.04 LTS (Focal Fossa)
- os: linux
dist: focal
python: "3.9"
env: BUILDENV=ubuntu2004-focal-python3.9
- os: linux
dist: focal
python: "3.8"
env: BUILDENV=ubuntu2004-focal-python3.8
- os: linux
dist: focal
python: "3.7"
env: BUILDENV=ubuntu2004-focal-python3.7
- os: linux
dist: focal
python: "3.6"
env: BUILDENV=ubuntu2004-focal-python3.6
- os: linux
dist: focal
python: "2.7"
env: BUILDENV=ubuntu2004-focal-python2.7
# Ubuntu 18.04 LTS (Bionic Beaver)
- os: linux
dist: bionic
python: "3.8"
env: BUILDENV=ubuntu1804-bionic-python3.8
- os: linux
dist: bionic
python: "3.7"
env: BUILDENV=ubuntu1804-bionic-python3.7
- os: linux
dist: bionic
python: "3.6"
env: BUILDENV=ubuntu1804-bionic-python3.6
- os: linux
dist: bionic
python: "2.7"
env: BUILDENV=ubuntu1804-bionic-python2.7
# Ubuntu 16.04 LTS (Xenial Xerus)
- os: linux
dist: xenial
python: "3.8"
env: BUILDENV=ubuntu1604-xenial-python3.8
- os: linux
dist: xenial
python: "3.7"
env: BUILDENV=ubuntu1604-xenial-python3.7
- os: linux
dist: xenial
python: "3.6"
env: BUILDENV=ubuntu1604-xenial-python3.6
- os: linux
dist: xenial
python: "3.5"
env: BUILDENV=ubuntu1604-xenial-python3.5
- os: linux
dist: xenial
python: "3.4"
env: BUILDENV=ubuntu1604-xenial-python3.4
- os: linux
dist: xenial
python: "2.7"
env: BUILDENV=ubuntu1604-xenial-python2.7
# Ubuntu 14.04 LTS (Trusty Tahr)
- os: linux
dist: trusty
python: "3.6"
env: BUILDENV=ubuntu1404-trusty-python3.6
- os: linux
dist: trusty
python: "3.5"
env: BUILDENV=ubuntu1404-trusty-python3.5
- os: linux
dist: trusty
python: "3.4"
env: BUILDENV=ubuntu1404-trusty-python3.4
- os: linux
dist: trusty
python: "3.3"
env: BUILDENV=ubuntu1404-trusty-python3.3
- os: linux
dist: trusty
python: "3.2"
env: BUILDENV=ubuntu1404-trusty-python3.2
- os: linux
dist: trusty
python: "2.7"
env: BUILDENV=ubuntu1404-trusty-python2.7
- os: linux
dist: trusty
python: "2.6"
env: BUILDENV=ubuntu1404-trusty-python2.6
# Ubuntu 12.04 LTS (Precise Pangolin)
- os: linux
dist: precise
python: "3.6"
env: BUILDENV=ubuntu1204-precise-python3.6
- os: linux
dist: precise
python: "2.7"
env: BUILDENV=ubuntu1204-precise-python2.7
- os: osx
language: generic
env: BUILDENV=macos
sudo: false
addons:
apt:
packages:
- ash
- busybox
- cabal-install
- ghc
- tcpdump
- zsh
cache:
directories:
- $HOME/.cabal
- $HOME/.cache/pip
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update && brew unlink gnupg && brew install gnupg shellcheck ;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
PATH="/usr/local/opt/python/libexec/bin:$PATH" ;
fi
install:
# Disable shellcheck on Linux, as it is buggy: it fails to parse quotes properly.
# Do so by introducing a symlink to true named "shellcheck" in a directory present in $PATH.
- if [ "$TRAVIS_OS_NAME" = "linux" ] ; then
mkdir -pv "$HOME/bin" ;
ln -sv "$(which true)" "$HOME/bin/shellcheck" ;
fi
# Install flake8 for the current version of Python, if it is supported.
# Otherwise, keep pycodestyle
- if python -c 'import sys;sys.exit(sys.version_info[:2] in ((2,6), (3,2), (3,3)))' ; then
pip install flake8 && flake8 --version ;
else
pip install pycodestyle && pycodestyle --version ;
fi
script:
# Run automated tests
- ./run_tests.sh
# Install the files after removing conflicting local files
- rm -f ~/.bash_profile ~/.bash_logout ~/.bashrc ~/.gitconfig ~/.gnupg/gpg.conf ~/.profile ~/.zshrc
- ./install.sh
# Test updating branch master of the project
- git remote set-branches origin master
- git fetch origin
- test "$TRAVIS_BRANCH" = "master" || git checkout origin/master -b master
- git checkout "$TRAVIS_BRANCH"
- ./update.sh
# Finish with a dump of the configuration
- bin/config-summary
notifications:
email: false