-
Notifications
You must be signed in to change notification settings - Fork 143
/
.gitlab-ci.yml
39 lines (33 loc) · 1.26 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
before_script:
image: docker:latest
variables:
DOCKER_DRIVER: overlay
GIT_SUBMODULE_STRATEGY: normal
services:
- docker:dind
stages:
- docs
- test
test_build:
cache:
key: "$CI_COMMIT_REF_SLUG"
stage: test
tags:
- RapidsDL
script:
- pwd
- docker run --runtime=nvidia --rm -p 48888:8888 -p 48787:8787 -p 48786:8786 -p 43000:3000 --ipc=host --name dev_tip_test -v $(pwd):/rapidsdl/ gitlab-master.nvidia.com:5005/rapidsdl/docker/rapidsdl_nite:latest /bin/bash -c "source activate rapids && cd /rapidsdl/nvtabular && black --check . && flake8 && isort -c && py.test --cov-config tests/unit/.coveragerc --cov-report term-missing --cov-fail-under 70 --cov=. tests && chmod -R 777 /rapidsdl/"
- sudo chmod -R 777 $(pwd)
pages:
stage: docs
tags:
- RapidsDL
script:
- mkdir public
- docker run --runtime=nvidia --rm -p 48888:8888 -p 48787:8787 -p 48786:8786 -p 43000:3000 --ipc=host --name dev_tip_test -v $(pwd):/rapidsdl/ gitlab-master.nvidia.com:5005/rapidsdl/docker/rapidsdl_nite:latest /bin/bash -c "source activate rapids && cd /rapidsdl/nvtabular/docs/ && make html; chmod -R 777 /rapidsdl/"
- ls nvtabular/docs/build/html/
- cp -r nvtabular/docs/build/html/* public
- ls public
artifacts:
paths:
- public