forked from dataloop-ai/dtlpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
63 lines (63 loc) · 2.41 KB
/
bitbucket-pipelines.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
options:
docker: true
pipelines:
default:
- step:
image: python:3.5
name: Tests3.5
script:
- python --version
- PYTHONPATH=$PWD
- pip install -r requirements.txt
- python setup.py build
- python setup.py install
- python tests/test_login.py "$TEST_USER_PROD" "$TEST_PASSWORD_PROD" "$CLIENT_ID_PROD" "$CLIENT_SECRET_PROD"
- pip install gsutil
- gsutil -m cp -R gs://dtlpy/assets tests/
- python tests/test_examples.py
- python tests/test_runner.py
- step:
image: python:3.6
name: Tests3.6
script:
- python --version
- PYTHONPATH=$PWD
- pip install -r requirements.txt
- python setup.py build
- python setup.py install
- python tests/test_login.py "$TEST_USER_PROD" "$TEST_PASSWORD_PROD" "$CLIENT_ID_PROD" "$CLIENT_SECRET_PROD"
- pip install gsutil
- gsutil -m cp -R gs://dtlpy/assets tests/
- python tests/test_examples.py
- python tests/test_runner.py
- step:
image: python:3.7
name: Tests3.7
script:
- python --version
- PYTHONPATH=$PWD
- pip install -r requirements.txt
- python setup.py build
- python setup.py install
- python tests/test_login.py "$TEST_USER_PROD" "$TEST_PASSWORD_PROD" "$CLIENT_ID_PROD" "$CLIENT_SECRET_PROD"
- pip install gsutil
- gsutil -m cp -R gs://dtlpy/assets tests/
- python tests/test_examples.py
- python tests/test_runner.py
tags:
"*":
- step:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:271.0.0
name: Build SDK Container
script:
- case "$BITBUCKET_TAG" in "") export BITBUCKET_TAG="build-$BITBUCKET_BUILD_NUMBER"; esac
- apt-get -y update && apt-get install -y python3-pip
- python3 setup.py bdist_wheel
- docker login -u _json_key -p "$GCP_KEY" https://gcr.io
- cp dist/dtlpy-$BITBUCKET_TAG-py3-none-any.whl dist/dtlpy-latest-py3-none-any.whl
- echo "$GCP_KEY" >> k.json
- gcloud auth activate-service-account --key-file=k.json
- gsutil -m cp -R dist/** gs://dtlpy/dev/
- chmod +x ./build-docker.sh
- ./build-docker.sh $BITBUCKET_TAG
- git checkout -b "$BITBUCKET_TAG"