Commit 58fd8ec1 authored by Sébastien Villemot's avatar Sébastien Villemot

Use Gitlab CI

parent 5b5eb5ac
Pipeline #380 failed with stage
in 58 seconds
before_script:
- git clone https://git.dynare.org/Dynare/dynare.git
- git clone https://git.dynare.org/Dynare/dates.git
- git clone https://git.dynare.org/Dynare/dseries.git
testsuite_matlab:
stage: test
script:
- make check-matlab
artifacts:
paths:
- test/report.pdf
testsuite_octave:
stage: test
script:
- make check-octave
artifacts:
paths:
- test/report.pdf
language: cpp
sudo: required
os: osx
osx_image: xcode7.3
cache: ccache
cache:
directories:
- /usr/local
before_install:
- wget http://ctan.math.utah.edu/ctan/tex-archive/systems/mac/mactex/BasicTeX.pkg -O "/tmp/BasicTeX.pkg"
- echo "Installing OS X binary package for MacTeX"
- sudo installer -pkg "/tmp/BasicTeX.pkg" -target / -dumplog -verbose
- rm "/tmp/BasicTeX.pkg"
- export PATH=/usr/texbin:/Library/TeX/texbin/pdflatex:$PATH
- sudo /Library/TeX/texbin/tlmgr update --self
- sudo /Library/TeX/texbin/tlmgr install pgfplots adjustbox collectbox datetime fmtcount
- brew update
- brew install ccache
- brew install octave
install:
- git clone --depth=1 --recursive --branch=master https://git.dynare.org/Dynare/dynare.git ~/builds/dynare
script:
- make check-octave
- ./success.sh
......@@ -5,7 +5,7 @@ all: check-octave check-matlab
check-octave:
@cd test ;\
$(OCTAVE) --silent --no-history runtest.m
$(OCTAVE) --silent --no-history runtest.m && [ -f report.pdf ]
check-matlab:
@$(MATLAB) -nosplash -nodisplay -r "cd test; runtest; quit"
@$(MATLAB) -nosplash -nodisplay -r "cd test; runtest; quit" && [ -f test/report.pdf ]
![](https://travis-ci.org/DynareTeam/reporting.svg?branch=master)
# Dynare Reporting
Originally designed to provide reporting functionality for
......
#!/bin/bash
if [ ! -f test/report.pdf ]; then
exit 1;
fi
......@@ -15,9 +15,9 @@
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
addpath('~/builds/dynare/matlab/utilities/general')
addpath('~/builds/dynare/matlab/modules/dates/src')
addpath('~/builds/dynare/matlab/modules/dseries/src')
addpath('../dynare/matlab/utilities/general')
addpath('../dates/src')
addpath('../dseries/src')
addpath('../src')
initialize_dates_toolbox;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment