From 94881752d560b1c9e477a11783f9f0403877acf7 Mon Sep 17 00:00:00 2001 From: Tomas Pohanka Date: Wed, 1 Apr 2020 16:46:42 +0200 Subject: [PATCH 1/2] run CI in GitHub Actions Use GitHub Action instead of TravisCI. Do the same as Travis, but with full integration in GitHub. based on https://github.com/openmaptiles/openmaptiles/issues/790 --- .github/workflows/omt_ci.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/omt_ci.yml diff --git a/.github/workflows/omt_ci.yml b/.github/workflows/omt_ci.yml new file mode 100644 index 0000000..a2230d5 --- /dev/null +++ b/.github/workflows/omt_ci.yml @@ -0,0 +1,45 @@ +# MapTiler OpenMapTiles +####################### + +# Workflow to validate OMT`s new Pull Requests and commits pushed into OMT repo + +name: OMT_CI + +# Controls when the action will run. Triggers the workflow on push and pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# jobs can run parallel +jobs: + # This workflow contains a single job called "build" + build: + # runs on ubuntu (can run on windows and mac os) + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Named steps + - name: generate all zooms + run: sed -i 's/QUICKSTART_MAX_ZOOM=7/QUICKSTART_MAX_ZOOM=14/g' .env + + # Runs quickstart + - name: quickstart + env: + area: northamptonshire + run: bash ./quickstart.sh $area + + - name: generate devdoc + run: TEST_MODE=yes make generate-devdoc + + # todo: use artifact to store result of tests + #- uses: actions/upload-artifact@v1 + # with: + # name: quickstart log file + # path: quickstart.log From 2382906fa29575d5be28b9fe4e5a9a8b2b242c58 Mon Sep 17 00:00:00 2001 From: Tomas Pohanka Date: Fri, 3 Apr 2020 09:54:52 +0200 Subject: [PATCH 2/2] Delete unnecessary travis.yml --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 789527d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -sudo: required - -language: bash - -services: - - docker - -script: - - set -e - - TEST_MODE=yes make generate-devdoc - - ./quickstart.sh