forked from metomi/rose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 2.04 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
# Configuration for running Rose test battery on Travis CI
# See https://travis-ci.org/ for more info.
---
language: python
python:
- 2.7
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"
install:
- >
sudo apt-get install -y at build-essential gfortran heirloom-mailx
pcregrep 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
script: skip
jobs:
include:
- stage: test
- script: >
rose test-battery --state=save -j 5 ||
(echo -e "\n\nRerunning Failed Tests...\n\n";
rose test-battery -v --state=save,failed -j 5)
- script: >
rose make-docs --venv --dev --strict clean linkcheck doctest html slides latexpdf