Skip to content

Commit

Permalink
two stages ci (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyli authored Mar 12, 2020
1 parent e40917f commit 204e42d
Showing 1 changed file with 31 additions and 17 deletions.
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

0 comments on commit 204e42d

Please sign in to comment.