1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

cleanup ci script

This commit is contained in:
checktheroads
2020-02-22 00:25:18 -07:00
parent 5128c18c76
commit afc4fe32d8
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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"