Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
stages:
- build
- build
- coverage

.base_template : &BASE
script:
- nvidia-smi
- export CUDA_DEVICE_ORDER=PCI_BUS_ID
- export CUDA_VISIBLE_DEVICES=0,1
- python -m pip install --upgrade pip
- pip uninstall -y torch torchvision
- pip install -r requirements.txt
# - pip list
- ./runtests.sh --net
- echo "Done with runtests.sh"
full integration:
stage: build
script:
- nvidia-smi
- export CUDA_DEVICE_ORDER=PCI_BUS_ID
- export CUDA_VISIBLE_DEVICES=0,1
- python -m pip install --upgrade pip
- pip uninstall -y torch torchvision
- pip install -q -r requirements.txt
- ./runtests.sh --net
- echo "Done with runtests.sh --net"
tags:
- test

build-ci-test:
stage: build
tags:
- test
<<: *BASE
coverage test:
stage: coverage
only:
- master
- ci-stages
script:
- nvidia-smi
- export CUDA_DEVICE_ORDER=PCI_BUS_ID
- export CUDA_VISIBLE_DEVICES=0,1
- python -m pip install --upgrade pip
- pip uninstall -y torch torchvision
- pip install -q -r requirements.txt
- pip list
- ./runtests.sh --coverage
tags:
- test