diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82c6e8762..8473d8cbb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,18 +82,6 @@ ubuntu18.04: - make install -get-dockerfile: - image: debian:9.3-slim - stage: build - script: - - apt-get update - - apt-get install -y git ca-certificates - - git clone https://github.com/carlesfernandez/docker-gnsssdr - artifacts: - paths: - - docker-gnsssdr/ - - # Stage "test" run-tests-amd64: image: debian:9.3-slim @@ -146,6 +134,9 @@ docker-gnsssdr: services: - docker:dind before_script: + - apt-get update + - apt-get install -y git ca-certificates + - git clone https://github.com/carlesfernandez/docker-gnsssdr - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" script: - mkdir docker-build @@ -153,8 +144,6 @@ docker-gnsssdr: - cp ../docker-gnsssdr/Dockerfile . - docker build -t carlesfernandez/docker-gnsssdr . - docker push carlesfernandez/docker-gnsssdr - dependencies: - - get-dockerfile # Stage "experiment" @@ -165,7 +154,7 @@ run-experiment: - apt-get update - apt-get upgrade -y # Grab analysis and representation tools - - apt-get install -y octave texlive-latex-base texlive-fonts-recommended texlive-latex-extra + - apt-get install -y octave texlive-latex-base texlive-fonts-recommended texlive-latex-extra epstool transfig octave # Grab the data set - apt-get install -y curl - cd data @@ -175,8 +164,9 @@ run-experiment: - md5sum -c data.md5 - cd .. # Execute the experiment (example) - - echo " x = 0:0.01:3; hf = figure (\"visible\", \"off\"); plot (x, erf (x)); hold on; plot (x, x, \"r\"); axis ([0, 3, 0, 1]); text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2\over\sqrt{\pi}}' '\int_{0}^{x}e^{-t^2} dt = 0.6175$']); xlabel (\"x\"); ylabel (\"erf (x)\"); title (\"erf (x) with text annotation\"); print (hf, \"results.pdf\", \"-dpdf\"); " > my_test_file.m + - echo " x = 0:0.01:3; hf = figure (\"visible\", \"off\"); plot (x, erf (x)); hold on; plot (x, x, \"r\"); axis ([0, 3, 0, 1]); text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2\over\sqrt{\pi}}' '\int_{0}^{x}e^{-t^2} dt = 0.6175$']); xlabel (\"x\"); ylabel (\"erf (x)\"); title (\"erf (x) with text annotation\"); print (hf, \"results.eps\", \"-deps\"); " > my_test_file.m - octave --no-gui my_test_file.m + - epspdf results.eps results.pdf - mkdir results - cp results.pdf results/