Skip to content

Commit d38364a

Browse files
committed
Make .travis.yml more legible
1 parent 647696c commit d38364a

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

.travis.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ env:
1212
# CMake build with unit tests, no documentation, with coverage analysis
1313
# No unicode so that coverage combined with the build script will cover unicode
1414
# and non-unicode code paths
15-
- BUILD_SCRIPT="mkdir cmake-build && cd cmake-build && cmake -DCMAKE_BUILD_TYPE=COVERAGE .. && make -j 4 check"
15+
- >
16+
BUILD_SCRIPT="mkdir cmake-build &&
17+
cd cmake-build &&
18+
cmake -DCMAKE_BUILD_TYPE=COVERAGE .. &&
19+
make -j 4 check"
1620
SPECIFIC_DEPENDS="cmake nodejs"
1721
JLINT="yes"
1822
DOCS="yes"
@@ -36,21 +40,50 @@ env:
3640

3741
before_install:
3842
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
39-
- if [[ $SPECIFIC_DEPENDS == *cmake* ]]; then sudo apt-add-repository -y ppa:kalakris/cmake; fi
43+
- |
44+
if [[ $SPECIFIC_DEPENDS == *cmake* ]]; then
45+
sudo apt-add-repository -y ppa:kalakris/cmake
46+
fi
4047
- sudo apt-get update -qq
41-
- if [[ $JLINT == [yY]* ]]; then curl -sL https://deb.nodesource.com/setup | sudo bash -x - ; fi
42-
- if [[ $CHECK_README_PROGS == [yY]* ]]; then wget http://people.sc.fsu.edu/~jburkardt/f_src/f90split/f90split.f90; fi
43-
- if [[ $DOCS == [yY]* ]]; then export DEPENDS="$DEPENDS exuberant-ctags"; fi
48+
- |
49+
if [[ $JLINT == [yY]* ]]; then
50+
curl -sL https://deb.nodesource.com/setup | sudo bash -x -
51+
fi
52+
- |
53+
if [[ $CHECK_README_PROGS == [yY]* ]]; then
54+
wget http://people.sc.fsu.edu/~jburkardt/f_src/f90split/f90split.f90
55+
fi
56+
- |
57+
if [[ $DOCS == [yY]* ]]; then
58+
export DEPENDS="$DEPENDS exuberant-ctags"
59+
fi
4460
- ulimit -s unlimited
4561

4662
install:
4763
- sudo apt-get install -y $SPECIFIC_DEPENDS $DEPENDS
48-
- if [[ $JLINT == [yY]* ]]; then sudo npm install -g jsonlint; fi
64+
- |
65+
if [[ $JLINT == [yY]* ]]; then
66+
sudo npm install -g jsonlint
67+
fi
4968
- sudo ln -fs /usr/bin/gfortran-4.9 /usr/bin/gfortran && gfortran --version
5069
- sudo ln -fs /usr/bin/gcov-4.9 /usr/bin/gcov && gcov --version
51-
- if [[ $FoBiS == [yY]* ]]; then sudo -H pip install FoBiS.py && FoBiS.py --version; fi
52-
- if [[ $DOCS == [yY]* ]]; then sudo -H pip install ford && ford --version; fi
53-
- if [[ $CHECK_README_PROGS == [yY]* ]]; then gfortran -o f90split f90split.f90 && ./f90split README.md && for f in example*.md; do mv $f src/tests/jf_test_${f%.md}.f90; done; rm f90split.f90 f90split; fi
70+
- |
71+
if [[ $FoBiS == [yY]* ]]; then
72+
sudo -H pip install FoBiS.py && FoBiS.py --version
73+
fi
74+
- |
75+
if [[ $DOCS == [yY]* ]]; then
76+
sudo -H pip install ford && ford --version
77+
fi
78+
- |
79+
if [[ $CHECK_README_PROGS == [yY]* ]]; then
80+
gfortran -o f90split f90split.f90 && \
81+
./f90split README.md && \
82+
for f in example*.md; do
83+
mv $f src/tests/jf_test_${f%.md}.f90
84+
done
85+
rm f90split.f90 f90split
86+
fi
5487
5588
script:
5689
- echo $BUILD_SCRIPT

0 commit comments

Comments
 (0)