Skip to content

Commit 4304456

Browse files
committed
add banner
fix error in release file path, add release to the filename
1 parent 73173e4 commit 4304456

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## build Spatial Math Toolbox for MATLAB
2+
# ____ _ _ _ __ __ _ _ _____ _ _
3+
# / ___| _ __ __ _| |_(_) __ _| | \/ | __ _| |_| |__ |_ _|__ ___ | | |__ _____ __
4+
# \___ \| '_ \ / _` | __| |/ _` | | |\/| |/ _` | __| '_ \ | |/ _ \ / _ \| | '_ \ / _ \ \/ /
5+
# ___) | |_) | (_| | |_| | (_| | | | | | (_| | |_| | | | | | (_) | (_) | | |_) | (_) > <
6+
# |____/| .__/ \__,_|\__|_|\__,_|_|_| |_|\__,_|\__|_| |_| |_|\___/ \___/|_|_.__/ \___/_/\_\
7+
18
sudo: required
29
services: docker
310
language: java
@@ -15,16 +22,17 @@ before_script:
1522
# create the LaTeX code
1623
- help2doc -l --include *.m
1724
# create the release file
18-
- printf '\\def\\release{%s}\n' `cat ../../../RELEASE` > release.tex
25+
- printf '\\def\\release{%s}\n' `cat ./RELEASE` > release.tex
1926
- printf '\\def\\reldate{%s}\n' "`date '+%B %Y'`" >> release.tex
2027
- mv all.tex release.tex doc/manual
2128
# Compile all the LaTex code
29+
# see https://hub.docker.com/r/dxjoke/tectonic-docker
2230
- docker run --mount src=$TRAVIS_BUILD_DIR/doc/manual,target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic spatialmath.tex"
2331
# copy to src folder
24-
- mv doc/manual/spatialmath.pdf .
32+
- mv doc/manual/spatialmath.pdf spatialmath-`cat ./RELEASE`.pdf
2533

2634
script:
27-
# run the unit tests on MATLAB cloud
35+
# run the unit tests with MATLAB on Travis cloud
2836
- matlab -sd unit_test -batch "RunAllTests"
2937

3038
after_success:
@@ -35,7 +43,7 @@ deploy:
3543
provider: releases
3644
api_key: $GITRELEASE
3745
file:
38-
- spatialmath.pdf
46+
- spatialmath-`cat ./RELEASE`.pdf
3947
# - "Spatial Math Toolbox for MATLAB.mltbx"
4048
skip_cleanup: true
4149
draft: true

0 commit comments

Comments
 (0)