Skip to content

Commit

Permalink
Merge pull request #4582 from pnorman/remove_travis
Browse files Browse the repository at this point in the history
Update GH Actions and remove vestiges of Travis
  • Loading branch information
pnorman authored Jul 13, 2022
2 parents c852510 + 971cff0 commit 828c41a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 47 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
- name: Set up Python
run: |
python -m pip install pyyaml colormath
- name: Set up apt
run: sudo apt-get update -qq
- name: Set up xmllint
run: sudo apt-get install -qq --no-install-recommends libxml2-utils
- name: Set up shell
Expand All @@ -31,3 +29,19 @@ jobs:
run: diff -qu <(scripts/generate_road_colours.py) style/road-colors-generated.mss
- name: Check for unsupported class usage
run: '! grep "class:" project.mml > /dev/null'
import:
needs: [syntax]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install osm2pgsql and database
run: sudo apt-get install -qq --no-install-recommends osm2pgsql postgresql-14-postgis-3
- name: Wait for database
run : sudo pg_ctlcluster 14 main start; until pg_isready; do sleep 0.5; done
- name: Setup database
run: sudo -i -u postgres createuser -s $USER && createdb -E utf8 gis && psql -Xq -d gis -c "CREATE EXTENSION postgis; CREATE EXTENSION hstore;"
- name: Import empty file
run: |
osm2pgsql -G --hstore --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua -d gis -r xml <(echo '<osm version="0.6"/>')
- name: Create indexes
run: psql -1Xq -v ON_ERROR_STOP=1 -d gis -f indexes.sql
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

0 comments on commit 828c41a

Please sign in to comment.