forked from metomi/rose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (51 loc) · 2.51 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
# Configuration for running Rose test battery on Travis CI
# See https://travis-ci.org/ for more info.
---
language: python
python:
- 2.7
dist: xenial
before_install:
- wget 'https://github.com/cylc/cylc/archive/master.tar.gz' -O '/tmp/cylc-master.tar.gz'
- tar -xvf '/tmp/cylc-master.tar.gz' -C "${HOME}"
- make -C "${HOME}/cylc-master" 'version'
- wget 'https://github.com/metomi/fcm/archive/master.tar.gz' -O '/tmp/fcm-master.tar.gz'
- tar -xvf '/tmp/fcm-master.tar.gz' -C "${HOME}"
- cat >"${HOME}/.bashrc" <<<"export PATH=${PWD}/bin:${HOME}/fcm-master/bin:${HOME}/cylc-master/bin:\$PATH"
- source "${HOME}/.bashrc"
- ssh-keygen -t 'rsa' -f "${HOME}/.ssh/id_rsa" -N '' -q
- cat "${HOME}/.ssh/id_rsa.pub" >>"${HOME}/.ssh/authorized_keys"
- ssh-keyscan -t 'rsa' 'localhost' >>"${HOME}/.ssh/known_hosts"
# Coverage dependencies
- pip install coverage pytest-cov
install:
- >
sudo apt-get install -y at build-essential gfortran heirloom-mailx
python-pip python-dev graphviz libgraphviz-dev python-jinja2
python-sqlalchemy libxml-parser-perl libconfig-inifiles-perl
libdbi-perl libdbd-sqlite3-perl latexmk texlive
texlive-generic-extra texlive-latex-extra texlive-fonts-recommended
- pip install cherrypy EmPy Jinja2 requests sqlalchemy pyopenssl pycodestyle
- pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"
- sudo sh -c 'echo "deb http://opensource.wandisco.com/ubuntu `lsb_release -cs` svn19" >> /etc/apt/sources.list.d/subversion19.list'
- sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install -y subversion
after_success:
- coverage combine --append
- coverage xml --ignore-errors
- bash <(curl -s https://codecov.io/bash)
jobs:
include:
- name: "Test Battery"
script:
- export COVERAGE_PROCESS_START="${TRAVIS_BUILD_DIR}/.coveragerc"
# ./bin/rose will change PYTHONPATH, so we cannot rely on that for sitecustomize.py
# but instead we can move the sitecustomize.py to the place used as PYTHONPATH
- cp "${TRAVIS_BUILD_DIR}/.travis/sitecustomize.py" ./lib/python
- export PYTHONPATH="${TRAVIS_BUILD_DIR}/.travis"
- coverage run .travis/cover.py
- rm ./lib/python/sitecustomize.py
- name: "Documentation"
script:
- rose make-docs --venv --dev --strict clean linkcheck doctest html slides latexpdf