forked from kili-technology/kili-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
124 lines (124 loc) · 7.97 KB
/
.travis.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
language: python
services:
- docker
env:
global:
- KILI_API_ENDPOINT=https://staging.cloud.kili-technology.com/api/label/v2/graphql
# USER_ID
- secure: "avQNya43cpJ0vG2LOw0hrgYLqw+SbCsJMqyBTObruQJGOST1Y6FefHRcugsuH4SrZADym5BhxZ5eJ7rKUGa4ukzYsvK9FhciUgS2cVUePwwNzM1tFqUJ5VKX6Ltv1ePcGImCgf3REo+UwdYB6PX9l7foRITs0MtqN9EGi5Gp9u7Sb+z4RGwX4FjZJKdPktuhO6PXmObGq8+3bEOMWUIguEkHuU/4gDYC0A4YQ1Zg//ho3SKnI4StGb9fwFk46KB7Dbr1RgzVjWQP7QlEl+sFAyXK7tHwYqYrxOgv8iSDGxEpRnCJAvtjRoIMD9Z7HNwbkNFkja4dW8mXFZmYVksNB5i6LRuJ4Z7oWBB37U8Cmz5g8VEe2QFszPbh7Dev00yz4GyAubegdaQGj8mZRVCkap8feKXgMnnO4gPjjs6+efHIBQCWoA79nI8EXXJJ/wNHhy38XowA+kP+yYyXWPI2kDDlLTm0MlGiZxV1zoz3p9Vi/eQ7pQKEDZWwiYt3wewuZPoC+ESYasPCLui1EYamjQMfoEQ740Qu4hepKcb9Pq2lSG7ExsFMrJ7kV+kxr6XRMsTuYL7ixfEwGt+BfOCINvTKy2v/q86JXx9aQXg2V/tY2pHCpXHWhvcI3H/o5+e5It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: "fzJ+dTZYMc8b+K/YK13ZLYojZPWwOlv2qnxCfwz7lpAEWsRF2wRqAYfm/ilDZHdTnTBvi9d9WGGn9iBbyCqNxvijlkS3p7f+yWPl3TTjsVies3QBIUHqNVC2ySYnDZQqQ793whgYeqddCcGF8frtjhQj28OLN/AD5btXoYMjVLlRNvtQvXzik/EGVl3yhplYQHH9kcXSqFiQTcyu1ZoGNQdtDVgBLyg8sTOKX3vV37C1UgUwZHiQ36vA07/BqkafKJxK7unGaKQnvlSSxv3dR9ywh34jTyny/j1Jl8Pz5YUKGhF2ExXduFcZULE9+IkGY8uIwSOC1Tm/OM544bvqEeyKXneKzi7CJZiOlK5BNbFaJs2dsucz2UdifAN4ecew1n/dV+MArmlFHV1Ux9YIsNX9yjQboyaisZRGpt4390BpVLYjts3WuSvabvCgFH5bDsfM+ejMoRlZ4lE1CgIyVTECYeMAU3kBcp7sDXgtkcfsCe5sv2MvVdAEJtvEE0ZGaGDPZZKzJutDWgV/EBfraRhtvp11ktDIx+C9ogfKxBN4x5G8MqdHCiL+f0KJk/2hU0sEIC7ssexm/ArZCzDzod6RQTUVFFRXMdGtoYtyRQNay+/wt5oCECe7nvfvyl8gKNdslYGuqDfRzorqtYdslyeFD3z3urOyQYsFN6tqUNI="
jobs:
include:
# To debug a recipe by running it in a Docker locally as it is run in Travis, launch the following lines:
#
# DOCKER_IMAGE=continuumio/anaconda3:2020.02
# KILI_USER_API_KEY=...
# KILI_USER_ID=...
# TRAVIS_BRANCH=...
#
# docker pull ${DOCKER_IMAGE}
#
# docker run \
# --env KILI_API_ENDPOINT=https://staging.cloud.kili-technology.com/api/label/v2/graphql \
# --env KILI_USER_API_KEY=${KILI_USER_API_KEY} \
# --env KILI_USER_ID=${KILI_USER_ID} \
# --env KILI_USER_EMAIL=${KILI_USER_EMAIL} \
# --rm \
# -p 10000:8888 \
# ${DOCKER_IMAGE} /bin/sh -c "cd /root && \
# apt-get update && apt-get install -y gcc && \
# git clone --branch ${TRAVIS_BRANCH} https://github.com/kili-technology/kili-playground.git && \
# pip install ./kili-playground && \
# jupyter notebook --allow-root --ip=0.0.0.0 --port=8888"
#
# Then start http://localhost:10000/?token=TOKEN_OUTPUTED_IN_CONSOLE
- &test-recipes
stage: Test *.ipynb in recipes
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker pull ${DOCKER_IMAGE}
- |
docker run \
--env KILI_API_ENDPOINT=${KILI_API_ENDPOINT} \
--env KILI_USER_ID=${KILI_USER_ID} \
--env KILI_USER_API_KEY=${KILI_USER_API_KEY} \
--env KILI_USER_EMAIL=${KILI_USER_EMAIL} \
${DOCKER_IMAGE} /bin/sh -c "cd /root && \
apt-get update && apt-get install -y gcc && \
git clone --branch ${TRAVIS_BRANCH} https://github.com/kili-technology/kili-playground.git && \
pip install ./kili-playground && \
jupyter nbconvert \
--to notebook \
--ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=1000 \
--execute /root/kili-playground/${NOTEBOOK_PATH}"
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/transfer_learning_with_yolo.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/import_predictions.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/create_project.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/medical_imaging.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/query_methods.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/import_assets.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/pixel_level_masks.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/import_text_assets.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/export_labels.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/inference_labels.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/getting-started/getting_started-image_bounding_box_detection.ipynb
- <<: *test-recipes
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02
- NOTEBOOK_PATH=recipes/getting-started/getting_started-image_classification.ipynb
- &test-pylint
stage: Test *.py with pylint
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker pull ${DOCKER_IMAGE}
- |
docker run \
${DOCKER_IMAGE} /bin/sh -c "cd /root && \
apt-get update && apt-get install -y gcc && \
git clone --branch ${TRAVIS_BRANCH} https://github.com/kili-technology/kili-playground.git && \
pip install pylint && \
cd kili-playground && \
pip install -r requirements.txt && \
pylint kili"
env:
- DOCKER_IMAGE=continuumio/anaconda3:2020.02