Skip to content
Snippets Groups Projects
Commit 8f38385a authored by tuhe's avatar tuhe
Browse files

testing again

parent 66614646
Branches
No related tags found
No related merge requests found
Pipeline #7545 passed
image: ubuntu:latest # fuck this shit. image: ubuntu:latest
stages: stages:
- test - test
- deploy - deploy
# - pull
# - build
#.pullprivate:
# stage: pull
# script:
# - echo "Cloning repos to set up a fresh build environment."
# - cd ..
# - if [ -d 02465private ]; then echo "Private repository exists"; else git clone https://oauth2:${GBAR_TOKEN}@gitlab.gbar.dtu.dk/02465material/02465private.git; fi
# - if [ -d 02465students ]; then echo "Students repository exists"; else git clone https://oauth2:${GBAR_TOKEN}@gitlab.gbar.dtu.dk/02465material/02465students.git; fi
# - rm -rf 02465students_complete
# - cp -rf 02465students 02465students_complete
#setup_38:
# extends: .pullprivate
# image: python:3.8-buster
#
#setup_39:
# extends: .pullprivate
# image: python:3.9-buster
#
#setup_310:
# extends: .pullprivate
# image: python:3.10-buster
#.build:
# stage: build
# script:
# - apt-get update
# - apt install git
# - apt install -y python-opengl xvfb # Virtual framebuffer for GL stuff.
# - echo "Current working directory"
# - pwd
# - echo "Contents of cwd:"
# - ls
# - echo "Content of 02465material"
# - ls /builds/02465material
# - echo "Content of /builds/02465material/02465public"
# - ls /builds/02465material/02465public
# - cd pythontools
# #- pip install -U setuptools #==58 # Required for unitgrade-devel because of python 2to3 is not in python 3.10... very hacky, and very bad. Need to change away from minifier.
# - pip install -U -r requirements_full.txt --no-cache --upgrade
# - cd tests
# - echo "CURRENT WORKKING DIRECTORY"
# - pwd
# - xvfb-run -s "-screen 0 1400x900x24" python deploy_student_repos.py # > deploy_student_repos_log.txt
#build_38:
# extends: .build
# image: python:3.8-buster
#
#build_39:
# extends: .build
# image: python:3.9-buster
#build_310:
# extends: .build
# image: python:3.10-buster
.test_students: .test_students:
stage: test stage: test
...@@ -86,31 +26,12 @@ stages: ...@@ -86,31 +26,12 @@ stages:
- xvfb-run -s "-screen 0 1400x900x24" python -m unittest test_slider.py - xvfb-run -s "-screen 0 1400x900x24" python -m unittest test_slider.py
- latexmk --version - latexmk --version
- ls tests_images/* - ls tests_images/*
# - apt-get install -y software-properties-common
# - apt-get -y update
# - add-apt-repository universe
# - sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
# - sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list
# - add-apt-repository ppa:inkscape.dev/stable
# - apt install -y swig # build-essential python-dev swig python-pygame # This is for swig. Remove when you go to a conda build system (and see what happens).
# - pip install -U -r ../02465students/requirements_pip.txt --no-cache --upgrade
# - pip install -U -r ../02465students/requirements_conda.txt --no-cache --upgrade
# - cd ../02465public/pythontools/tests
test_39: test_39:
extends: .test_students extends: .test_students
image: ubuntu:latest image: ubuntu:latest
#test_39:
# extends: .test_students
# image: python:3.9-buster
#
#test_310:
# extends: .test_students
# image: python:3.10-buster
# Copies the previous pipeline but ok.
pages: pages:
stage: deploy stage: deploy
script: script:
...@@ -141,31 +62,8 @@ pages: ...@@ -141,31 +62,8 @@ pages:
- echo "in public/tests_images" - echo "in public/tests_images"
- ls public/tests_images/* - ls public/tests_images/*
- latexmk --version - latexmk --version
# - apt install -y python3-sphinx
# - echo "hello" > public/index.html
# - pip install -U -r pythontools/requirements_full.txt --no-cache --upgrade
# - cd ../02465students_complete/docs/source
# - sphinx-build -b html . ../../../02465public/public
# - echo "> Changind directory to 02465public"
# - cd ../../../02465public # Important for the artifact directory to be available.
# - echo "> current working directory"
# - pwd
# - echo "Content of this directory is:"
# - ls
# - echo "Content of public directory is:"
# - ls public
# - echo "ci project dir {$CI_PROJECT_DIR}"
# - cat public/index.html
artifacts: artifacts:
paths: paths:
- public - public
rules: rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
#- pip install -U setuptools #==58 Required for unitgrade-devel because of python 2to3 is not in python 3.10... very hacky, and very bad. Need to change away from minifier.
# - xvfb-run -s "-screen 0 1400x900x24" python deploy_student_repos.py > deploy_student_repos_log.txt
#- echo "The public/docs/source/index.rst file is"
#- cat pythontools/docs/source/index.rst
#- echo "The 02465students/docs/source/index.rst file is"
#- cat ../02465students_complete/docs/source/index.rst
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: beamer-slider Name: beamer-slider
Version: 0.1.25.2 Version: 0.1.25.4
Summary: Software to create inkscape overlays in Beamer Summary: Software to create inkscape overlays in Beamer
Home-page: https://lab.compute.dtu.dk/tuhe/slider Home-page: https://lab.compute.dtu.dk/tuhe/slider
Author: Tue Herlau Author: Tue Herlau
......
[console_scripts] [console_scripts]
slider = slider.slider_cli:clize_main_entry_point slider = slider.slider_cli:clize_main_entry_point
slider_convert = slider.slider_cli:slide_converter_main_entry_point slider_convert_deck = slider.slider_cli:slide_converter_main_entry_point
...@@ -218,7 +218,7 @@ When done, run slider again to keep everything in sync. ...@@ -218,7 +218,7 @@ When done, run slider again to keep everything in sync.
args = parser.parse_args() args = parser.parse_args()
slider_cli(latexfile=args.latexfile, fixbroken=args.fixbroken) slider_cli(latexfile=args.latexfile, fixbroken=False)
# clize.run(slider_cli) # clize.run(slider_cli)
if __name__ == '__main__': if __name__ == '__main__':
......
__version__ = "0.1.25.3" __version__ = "0.1.25.4"
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment