Fix missing dependencies and variable exports
This commit is contained in:
parent
51987e1e3b
commit
a817299570
3 changed files with 9 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ on-schedule:
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
|
- pip3 install requests beautifulsoup4
|
||||||
- sh tools/do_release.sh
|
- sh tools/do_release.sh
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
SOURCE_BRANCH=$(git branch --show-current)
|
SOURCE_BRANCH=$(git branch --show-current)
|
||||||
RELEASE_TRIGGER=${RELEASE_TRIGGER:-"Manual command-line makefile invocation"}
|
RELEASE_TRIGGER=${RELEASE_TRIGGER:-"Manual command-line makefile invocation"}
|
||||||
|
|
||||||
GIT_AUTHOR_NAME=${GIT_AUTHOR_NAME:-'STM32Square Auto-Release Script'}
|
set -x GIT_AUTHOR_NAME=${GIT_AUTHOR_NAME:-'STM32Square Auto-Release Script'}
|
||||||
GIT_AUTHOR_EMAIL=${GIT_AUTHOR_EMAIL:-'autorelease@stm32square.jaseg.de'}
|
set -x GIT_AUTHOR_EMAIL=${GIT_AUTHOR_EMAIL:-'autorelease@stm32square.jaseg.de'}
|
||||||
|
|
||||||
if [ ! -z ${GITLAB_USER_EMAIL+x} ]; then
|
if [ ! -z ${GITLAB_USER_EMAIL+x} ]; then
|
||||||
GIT_COMMITTER_NAME="$GITLAB_USER_NAME"
|
set -x GIT_COMMITTER_NAME="$GITLAB_USER_NAME"
|
||||||
GIT_COMMITTER_EMAIL="$GITLAB_USER_EMAIL"
|
set -x GIT_COMMITTER_EMAIL="$GITLAB_USER_EMAIL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TIMESTAMP=${TIMESTAMP:-$(date +%y-%m-%d)}
|
TIMESTAMP=${TIMESTAMP:-$(date +%y-%m-%d)}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import requests
|
|
||||||
import re
|
import re
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
import sys
|
import sys
|
||||||
import lzma
|
import lzma
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
from tqdm import tqdm
|
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import requests
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
def fucked_up_get(*args, **kwargs):
|
def fucked_up_get(*args, **kwargs):
|
||||||
for retry in range(5):
|
for retry in range(5):
|
||||||
for timeout in [0.1, 0.5, 1.0, 2.0, 5.0]:
|
for timeout in [0.1, 0.5, 1.0, 2.0, 5.0]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue