Loading .gitlab-ci.yml +13 −8 Original line number Diff line number Diff line # This file is a template, and might need editing before it works on your project. # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ image: python:latest image: nvcr.io/nvidia/tensorflow:19.02-py3 # Change pip's cache directory to be inside the project directory since we can # only cache local items. Loading @@ -18,11 +18,16 @@ cache: - .cache/pip - venv/ before_script: - python -V # Print out python version for debugging - pip install virtualenv - virtualenv venv - source venv/bin/activate stages: - build - test - pages # before_script: # - python -V # Print out python version for debugging # - pip install virtualenv # - virtualenv venv # - source venv/bin/activate test: script: Loading @@ -30,7 +35,7 @@ test: - pip install tox flake8 # you can also use tox - tox -e py36,flake8 run: build: script: - python setup.py bdist_wheel # an alternative approach is to install and run: Loading @@ -43,7 +48,7 @@ run: pages: script: - pip install sphinx sphinx-rtd-theme - cd doc ; make html - cd docs ; make html - mv build/html/ ../public/ artifacts: paths: Loading Loading
.gitlab-ci.yml +13 −8 Original line number Diff line number Diff line # This file is a template, and might need editing before it works on your project. # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ image: python:latest image: nvcr.io/nvidia/tensorflow:19.02-py3 # Change pip's cache directory to be inside the project directory since we can # only cache local items. Loading @@ -18,11 +18,16 @@ cache: - .cache/pip - venv/ before_script: - python -V # Print out python version for debugging - pip install virtualenv - virtualenv venv - source venv/bin/activate stages: - build - test - pages # before_script: # - python -V # Print out python version for debugging # - pip install virtualenv # - virtualenv venv # - source venv/bin/activate test: script: Loading @@ -30,7 +35,7 @@ test: - pip install tox flake8 # you can also use tox - tox -e py36,flake8 run: build: script: - python setup.py bdist_wheel # an alternative approach is to install and run: Loading @@ -43,7 +48,7 @@ run: pages: script: - pip install sphinx sphinx-rtd-theme - cd doc ; make html - cd docs ; make html - mv build/html/ ../public/ artifacts: paths: Loading