diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index e728ab0b..00000000 --- a/.drone.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -kind: pipeline -name: default - -steps: -- name: test - image: python:3.7 - commands: - - pip install yapf - - yapf . -rd - - pip install -r requirements.txt - - pip install -r tests/requirements.txt - - pytest - -trigger: - branch: - exclude: - - master - - develop ---- -kind: pipeline -type: ssh -name: dev-deploy - -server: - host: s2.noj.tw - user: development - ssh_key: - from_secret: dev-ssh_key - -steps: -- name: deploy - commands: - - cd /home/development/Normal-OJ/Back-End - - git pull - - docker-compose up --build --no-start web - - docker-compose restart web - -trigger: - event: - - push - branch: - - develop ---- -kind: pipeline -type: ssh -name: prod-deploy - -server: - host: noj.tw - user: development - ssh_key: - from_secret: prod-ssh_key - -steps: -- name: deploy - commands: - - cd /home/development/Normal-OJ/Back-End - - git pull - - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build web - -trigger: - event: - - push - branch: - - master \ No newline at end of file diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index d0382479..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,3 +0,0 @@ -* @AlaRduTP -* @skps2010 -* @as535364 diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml deleted file mode 100644 index adb7803c..00000000 --- a/.github/workflows/continuous-integration-workflow.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: CI - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Upgrade pip - run: | - python -m pip install --upgrade pip - - name: Install dev dependencies - run: | - pip install -r requirements/dev.txt - # - name: Install bs detection requirements - # run: | - # sudo apt install cppcheck - - name: YAPF - run: | - yapf . -rd - - name: Unit test - run: | - pytest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..2c65c49d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +stages: + - test + +test: + stage: test + image: python:3.8-buster + script: + - pip install --upgrade pip + - pip install -r requirements/dev.txt + - yapf . -r + - pytest diff --git a/README.md b/README.md index 90002ca3..5af12b68 100644 --- a/README.md +++ b/README.md @@ -1,5 +1 @@ -# Back-End - -## API Reference - -https://normal-oj.github.io/Back-End +# Normal OJ Backend