Skip to content
Snippets Groups Projects
Verified Commit 58fd8ec1 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Use Gitlab CI

parent 5b5eb5ac
No related branches found
No related tags found
No related merge requests found
Pipeline #379 failed
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 ...@@ -5,7 +5,7 @@ all: check-octave check-matlab
check-octave: check-octave:
@cd test ;\ @cd test ;\
$(OCTAVE) --silent --no-history runtest.m $(OCTAVE) --silent --no-history runtest.m && [ -f report.pdf ]
check-matlab: 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 # Dynare Reporting
Originally designed to provide reporting functionality for Originally designed to provide reporting functionality for
......
#!/bin/bash
if [ ! -f test/report.pdf ]; then
exit 1;
fi
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
addpath('~/builds/dynare/matlab/utilities/general') addpath('../dynare/matlab/utilities/general')
addpath('~/builds/dynare/matlab/modules/dates/src') addpath('../dates/src')
addpath('~/builds/dynare/matlab/modules/dseries/src') addpath('../dseries/src')
addpath('../src') addpath('../src')
initialize_dates_toolbox; initialize_dates_toolbox;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment