mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
cleanup ci script
This commit is contained in:
@ -13,10 +13,8 @@ RUN apt-get update \
|
||||
&& python3 --version \
|
||||
&& echo "NodeJS $(node --version)" \
|
||||
&& echo "Yarn $(yarn --version)"
|
||||
# && git clone --single-branch --branch v1.0.0 --depth 1 https://github.com/checktheroads/hyperglass
|
||||
COPY ./ /tmp/hyperglass
|
||||
ENV PATH=$PATH:/root/.poetry/bin
|
||||
# ENV BASH_ENV=/etc/profile exec bash
|
||||
|
||||
FROM base as install
|
||||
WORKDIR /tmp/hyperglass
|
||||
|
@ -9,8 +9,10 @@ poetry run hyperglass build-ui
|
||||
echo "UI build completed"
|
||||
echo "Starting hyperglass..."
|
||||
poetry run hyperglass start &> /var/log/hyperglassci.log &
|
||||
sleep 10
|
||||
echo "Started hyperglass"
|
||||
echo "Running HTTP test..."
|
||||
echo "Status code:"
|
||||
curl -s -o /dev/null -w "%{http_code}" http://localhost:8001
|
||||
echo "Tests ran successfully"
|
||||
echo "\nTests ran successfully"
|
||||
exit 0
|
@ -12,7 +12,3 @@ jobs:
|
||||
script: docker run hyperglass/ubuntu /bin/sh -c "cd /tmp/hyperglass; poetry run flake8 hyperglass"
|
||||
- stage: Test
|
||||
script: docker run hyperglass/ubuntu /tmp/dockersetup.sh
|
||||
# - stage: Start
|
||||
# script: docker run hyperglass/ubuntu /bin/sh -c "cd /tmp/hyperglass; poetry run hyperglass start &> /var/log/hyperglassci.log &"
|
||||
# - stage: Test
|
||||
# script: docker run hyperglass/ubuntu /bin/sh -c "curl -s -o /dev/null -w "%{http_code}" http://localhost:8001"
|
||||
|
Reference in New Issue
Block a user