good python3 CI
This commit is contained in:
12
.drone.yml
12
.drone.yml
@ -3,10 +3,16 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
- name: build-web
|
||||
image: node
|
||||
commands:
|
||||
- (cd web && npm install && npm run build)
|
||||
|
||||
|
||||
- name: translate-web
|
||||
image: python:3
|
||||
commands:
|
||||
- pip3 install jinja2
|
||||
- (cd templates/ && ./translate.py)
|
||||
when:
|
||||
event:
|
||||
@ -15,8 +21,8 @@ steps:
|
||||
- name: deploy-testing
|
||||
image: debian
|
||||
commands:
|
||||
- apt-get -qq update && apt-get -qq install git python3-requests > /dev/null
|
||||
- (cd lang && ./sync_translation.py --client $TRADUORA_W_CLIENT --secret $TRADUORA_W_SECRET --push)
|
||||
- apt-get -qq update && apt-get -qq install git > /dev/null
|
||||
- sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
|
||||
- version=$(git rev-parse HEAD)
|
||||
- echo "current git commit is $version"
|
||||
@ -55,8 +61,8 @@ steps:
|
||||
- name: deploy-stable
|
||||
image: debian
|
||||
commands:
|
||||
- apt-get -qq update && apt-get -qq install jq curl git pandoc python3-requests > /dev/null
|
||||
- (cd lang && ./sync_translation.py --client $TRADUORA_W_CLIENT --secret $TRADUORA_W_SECRET --push)
|
||||
- apt-get -qq update && apt-get -qq install jq curl git pandoc > /dev/null
|
||||
- sed -i 's/target_version = git/target_version = stable/' configuration.default.ini
|
||||
- git fetch --tags
|
||||
- version=$(git describe --abbrev=0 --tags)
|
||||
|
Reference in New Issue
Block a user