-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
46 lines (35 loc) · 1.71 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
sudo: required
services:
- docker
language: python
env:
global:
- secure: "yteXlVvfBXfaYGGoxFZqEtG895OB7JK9euPCAAPjjbguyepy7qwEKRkOne3/SEVrGAf0QGsmJRCWaQkHBcd1SKzPbo2QXU7aZwZTwb7zp91BpsFz3EiQbz7Nzc79Kn0hkQ0CntlFSBovWastmX11NX/dHlBrJObe+BTDI/xfMWHJ9uU6uS8Ozzyenxv3GcZ+pKUADzbGAUhjBpeshB/Ys1c+zUP0hQocXUrzJ3hfyrGOdOz5agsyesKxdLnkORJObYtbRe5WUUNIL4rXagLygAmU5E4skG/esbrqZqqj4thES7xmx3MaApVoN+NwfUSqjenHhJUkFCuafUXoQJ6HQbhcZbSC9wPEiDPqrZf/dWMJR4Yx/bhYBjy7WdqQdDJlKfhsAe1nJ8fuaun6w7Jad/uqdtvZbxEHRNz/pK7XvmROsHRcfJcv3WOTm57W/w3kB/Q5Ih4MHwbwrYtrPKjwJ9qvf3cxj/RtITnTcDcSH8TtTGicK+SSF2n82fNOhSSmgzJ9JnSD3gz8GMIO7q3ujDMzkOSqf6F8w6lm2YTD2vV/fy7bmy1b0nB1eMpUWdv/65tSK61y/iCxhjWV1IhZervLOxWoTAv+mRMx2Fd498G2JkLW9Dwpw0d9Q2jsBYCd3RiVpkp6v9I2AQryKgFU3jkltgfQZ7FaFtIxIYflhI4="
git:
depth: 1000
addons:
apt:
packages:
- trang
- libxml2-utils
before_install:
- docker build -t mef/make .
before_script:
- git clone --depth 1 --branch master https://github.com/open-psa/mef-examples
script:
- grep -P -n "(\t|\s$)" *.rst mef/*.rst >> _warnings || echo "Great, no tabs or trailing spaces!"
- grep -P -n "[^[:ascii:]]" mef/*.rst | grep -v 'bibliography' >> _warnings || echo "no non-ASCII chars!"
- cat _warnings && [[ ! -s _warnings ]]
- docker run mef/make
- docker cp $(docker ps -alq):mef/build ./
- trang mef/schema/mef.rnc _check_mef.rng
- trang mef/schema/mef.rnc _check_mef.xsd
- xmllint --noout --relaxng _check_mef.rng mef-examples/Baobab/*.xml
- xmllint --noout --schema _check_mef.xsd mef-examples/Baobab/*.xml
deploy:
local_dir: build/html
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master