From 22f33004ab0d2368dd52bdb9f5000aaf5eeb8e59 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 17 Jun 2019 00:02:35 -0700 Subject: [PATCH] moved to tests dir, added github token --- .travis.yml | 30 +++++++++++++++++------------- README.md | 4 ++-- {ci => tests}/check_code.sh | 0 {ci => tests}/ci_commit.sh | 0 {ci => tests}/ci_dev_server.py | 0 {ci => tests}/ci_prepare.py | 0 {ci => tests}/ci_test.py | 0 {ci => tests}/commands.toml | 0 {ci => tests}/configuration.toml | 0 {ci => tests}/devices.toml | 0 {ci => tests}/requirements_dev.txt | 0 11 files changed, 19 insertions(+), 15 deletions(-) rename {ci => tests}/check_code.sh (100%) rename {ci => tests}/ci_commit.sh (100%) rename {ci => tests}/ci_dev_server.py (100%) rename {ci => tests}/ci_prepare.py (100%) rename {ci => tests}/ci_test.py (100%) rename {ci => tests}/commands.toml (100%) rename {ci => tests}/configuration.toml (100%) rename {ci => tests}/devices.toml (100%) rename {ci => tests}/requirements_dev.txt (100%) diff --git a/.travis.yml b/.travis.yml index effa610..c13e2a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,25 @@ language: python python: - - "3.6" +- '3.6' before_install: - - sudo add-apt-repository universe -y - - sudo apt-get update -q - - sudo apt-get install -y redis-server redis-tools - - sudo systemctl start redis-server - - pip3 install -r ./ci/requirements_dev.txt +- sudo add-apt-repository universe -y +- sudo apt-get update -q +- sudo apt-get install -y redis-server redis-tools +- sudo systemctl start redis-server +- pip3 install -r ./tests/requirements_dev.txt install: - - pip3 install -r requirements.txt +- pip3 install -r requirements.txt after_install: - - bash ./ci/check_code.sh +- bash ./tests/check_code.sh before_script: - - python3 ./ci/ci_prepare.py +- python3 ./tests/ci_prepare.py script: - - nohup python3 ./ci/ci_dev_server.py & - - sleep 20 - - python3 ./ci/ci_test.py +- nohup python3 ./tests/ci_dev_server.py & +- sleep 20 +- python3 ./tests/ci_test.py after_script: - - bash ./ci/ci_commit.sh +- git remote add origin https://${GH_TOKEN}@github.com/checktheroads/hyperglass.git > /dev/null 2>&1 +- git push --quiet --set-upstream origin master +env: + global: + secure: ZI4mHAZsCa33AQmS/1AoKED0aK7tFVXkqh1xQdbermgUG2c529gA2uylTazgVxqspF9ZbwoAdymkTwot12FfUrF+z2tqmlG7dWKcAm8TT6Kepe7K1fV2+XxViTqZTOmCo4KTcm4TUiunOCvR8VP6wNBQFhh+xTuNQUvvfqHX6QV5scGvG3eBX5MW0PP0zxSxy01UwnhKeyouHZFdf6dI7iz0TMi0myO+IPJ+Wt+feRGIx+Pt2Q/gtx/Obt/diyxyQNFgaC8GYYQ5LNUidRincFgXLPEmmn+MfOAkyY0eALgYPMmvxrywskV56lW5jepHBvua442An5Nmq2WINNl/g0WrtgGvEvP7lu7uMY//n+mAl1Gi4OmTY91whjIuRlujZ2s2jT0PwHJ5I84wckgKIT3EJD6bzSgNP+bL0+C7GosAWe6xUw9me8wJivNkGmiLf8j5d9AoB4wLRQwPqiChJP8Emhi9JR5g2fTvnx4lTSnIyReAB+m806YpMgdR3cZCgQYHWwYL67T0my35orByWUijgwZNwPhVOctAhtnVAhN5UE2Ho/lgK8uNuM8eWi4dGHLFUYHMipzfZMP8SQtvddkyBvNQZfDW1FP15z9C1V6bmsR1CYjM4g9z1qziPSWhL/gcap1PqIMQnIYIZV9Fny38TP+GJu2IRNAGnqNtDdU= diff --git a/README.md b/README.md index 7f522de..7454681 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ **hyperglass** is intended to make implementing a looking glass too easy not to do, with the big-picture goal of improving the internet community as a whole by making looking glasses more common across autonomous systems of any size.
- -![GitHub issues](https://img.shields.io/github/issues/checktheroads/hyperglass.svg) +[![Build Status](https://travis-ci.com/checktheroads/hyperglass.svg?token=qWu7QJN7YkwTDsUawGBx&branch=master)](https://travis-ci.com/checktheroads/hyperglass) ![Pylint](https://github.com/checktheroads/hyperglass/blob/master/pylint.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) +![GitHub issues](https://img.shields.io/github/issues/checktheroads/hyperglass.svg) ## Features diff --git a/ci/check_code.sh b/tests/check_code.sh similarity index 100% rename from ci/check_code.sh rename to tests/check_code.sh diff --git a/ci/ci_commit.sh b/tests/ci_commit.sh similarity index 100% rename from ci/ci_commit.sh rename to tests/ci_commit.sh diff --git a/ci/ci_dev_server.py b/tests/ci_dev_server.py similarity index 100% rename from ci/ci_dev_server.py rename to tests/ci_dev_server.py diff --git a/ci/ci_prepare.py b/tests/ci_prepare.py similarity index 100% rename from ci/ci_prepare.py rename to tests/ci_prepare.py diff --git a/ci/ci_test.py b/tests/ci_test.py similarity index 100% rename from ci/ci_test.py rename to tests/ci_test.py diff --git a/ci/commands.toml b/tests/commands.toml similarity index 100% rename from ci/commands.toml rename to tests/commands.toml diff --git a/ci/configuration.toml b/tests/configuration.toml similarity index 100% rename from ci/configuration.toml rename to tests/configuration.toml diff --git a/ci/devices.toml b/tests/devices.toml similarity index 100% rename from ci/devices.toml rename to tests/devices.toml diff --git a/ci/requirements_dev.txt b/tests/requirements_dev.txt similarity index 100% rename from ci/requirements_dev.txt rename to tests/requirements_dev.txt