Commit Graph

77 Commits

Author SHA1 Message Date
Birk Skyum
95f41105e8 Use self-hosted AWS runners (#426) 2022-09-08 05:23:14 +02:00
Birk Skyum
b5f5e425a6 Fix macos-ci using darwin-style-code instead of nitpick (#427) 2022-09-07 15:04:18 +02:00
Rob Labs
901ab18689 Fix for "NSExpression function is forbidden" (#411)
* For iOS 15.5, refactor how MGL Expressions are defined. Fix for "NSExpression function is forbidden" #331

* Convert CI Scheme to TestPlan. Add CI-Expressions TestPlan (which skips tests unrelated to `NSExpression`)

* Update Swift & Objective-C sample Code for MGL Expressions.  Use these patterns for fixing unit tests.

* Update Swift sample code & documentation for MGL expressions.  Update API docs (.h) & online docs (HTML) with:  `make darwin-style-code && make idocument`

* Refresh developer documentation for:  build dependencies, running unit tests from the command line, and logging in C++.

* Mark certain unit tests as "Expected Failures":  Awaiting unit test refactoring for https://github.com/maplibre/maplibre-gl-native/issues/331

* Update to latest Xcode & iOS SDK. Update GitHub Action Runner Images from https://github.com/actions/runner-images

* For iOS 15.5, add "Expected Failure" for tests

* Skip failing test unrelated to NSExpressions

* Convert macOS project to use Test Plans

* Exclude previously failing Offline Storage test

* Refactor MGL Match expressions for macOS & iOS 15.5

* Refactor Unit Tests so that "Excluded Failures" work for both macOS 12 & iOS 15.5

* Refresh documentation on how to test for macOS from the command line
2022-09-03 22:32:15 +02:00
Oliver Wipfli
c2d91477b1 Run render tests in CI (#357)
* Add render test workflow

* Sudo

* Add debug output

* Remove path

* Use xvfb

* Remove unneeded code

* Upload render query test artifact

* Always upload artifact

* Add failing tests to ignores file

* Rename workflow

* Fix file extension

* Change xvfb options

* Ignore x display errors

* Run render tests on macOS

* Upload render test artifacts

* Run linux render tests

* Revert runner changes

* Remove linux render test

* Remove ignores

* Add macos ignore

* Add documentation

* Update DEVELOPING.md

Co-authored-by: Tadej Novak <tadej@tano.si>
2022-08-13 12:42:10 +02:00
Birk Skyum
77a859f1ad Update github actions, and add dependabot to keep track of them (#387)
* dependabot for github actions

* Update github actions

* update ubuntu version from deprecated 18

* keep ubuntu 20
2022-08-11 11:29:22 +02:00
Tadej Novak
af36ed3456 Only override CMAKE_OSX_ARCHITECTURES for XCode (#352) 2022-08-06 17:27:47 +02:00
Oliver Wipfli
ca9a40eb53 Run iOS and Qt CI on main (#368) 2022-07-16 11:49:13 +02:00
Oliver Wipfli
7a40d4cbd3 Remove redundant working directory in Android CI (#343) 2022-07-03 15:15:05 +02:00
Tadej Novak
9cd70bfe7f Qt build improvements and documentation (#277)
* Qt build improvements and documentation

* Update include/mbgl/actor/actor_ref.hpp

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
2022-06-16 20:52:52 +02:00
Brendan Ward
6dbc711e07 CI: ignore non-target platforms / CI workflows from each CI workflow (#333)
* ignore non-target platforms / CI workflows from each CI workflow

* Add missing exclusions, try to fix concurrency

* Try different concurrency setting

* Concurrency needs to be at workflow rather than job level

* trivial commit to test canceling previous CI jobs

* Remove concurrency from android-ci

* Try without wildcard exclusions of CI workflows

* Try more specific path exclusions in other CI workflows

* Minor change to see if other workflows are triggered
2022-06-16 20:31:59 +02:00
Oliver Wipfli
03dc955683 Restrict cancel workflow (#330) 2022-06-15 15:14:06 -07:00
Oliver Wipfli
28bc0822d2 Add update-gl-js.yml workflow (#315)
* Add `update-gl-js.yml` workflow

* Add `update-gl-js.yml` workflow
2022-06-13 19:29:49 -07:00
Oliver Wipfli
1aeabf1fc6 Cancel previous CI run on new pull request push (#311)
Thanks for contributing to FOSS4G!
2022-06-13 19:26:51 -07:00
Oliver Wipfli
9b009cf9d3 Add iOS API docs workflow (#319) 2022-06-13 07:20:02 +02:00
Oliver Wipfli
d0df7efd07 Deploy to android/api GitHub Pages folder (#320) 2022-06-12 22:17:41 +02:00
Oliver Wipfli
9d05e4c1dd Add gh-pages-android-api workflow (#298) 2022-06-06 11:44:18 +02:00
Ian Saultz
ea234edf67 chore: rename master -> main in CI and scripts (#246)
Thanks for contributing to FOSS4G!
2022-03-07 11:40:06 -08:00
Tadej Novak
7e83c35549 [ci] Refresh Ubuntu repositories to avoid stale states (#234) 2022-02-15 11:15:29 -08:00
kiibimees
747eb3a440 [qt] Build improvements and better handling of map settings (#197)
* QMapboxGLSettings functions for changing default options and getting default styles

* [qt] allow to build without widgets and other cmake improvements

* [qt] Install include/mbgl for development

* [qt] library static/shared install+export

* [qt] Add missing mbgl-compiler-options dependency for 'qmapboxgl'

* [qt] Raise CMAKE_OSX_DEPLOYMENT_TARGET from 10.13 to 13.0

* [qt] Add Qt::Sql dependency also to the final library. Build qmapboxgl as OBJECT lib inside QtLocation plugin.

* Remove Qt::Sql dependency from 'qmapboxgl'. Not really needed.

* Set CMake config files path back to ${CMAKE_INSTALL_LIBDIR}/cmake/QMapboxGL/

* [qt] Set CMAKE_OSX_DEPLOYMENT_TARGET only if it is not yet set

* [qt] Support CMake v3.11 and earlier versions

* [qt] Comment out 'iOS_static' from CI until it is fixed.

Co-authored-by: Rinigus <rinigus.git@gmail.com>
2022-02-14 17:18:29 +01:00
Justas Brazauskas
cfcbc62fad Feature - Bring back node support (#217)
This PR brings back support for node.js later versions, as well as actually making it work. Maps now render, properly, using node v10, v12, and v16.
2022-02-08 20:40:19 +01:00
Tadej Novak
05836553f1 [qt] Initial CI pipeline (#221) 2022-01-28 11:43:46 -08:00
Petr Pokorny
bf16c74a12 sailfish/26 was removed from google labs on 2021-07-22 2021-09-06 21:53:43 +02:00
Petr Pokorny
09f1dac9ae Android build times out on GH runners
Execution failed for task ':MapboxGLAndroidSDK:compileReleaseKotlin'.
> Could not resolve all artifacts for configuration ':MapboxGLAndroidSDK:releaseCompileClasspath'.
   > Could not download okhttp-3.12.3.jar (com.squareup.okhttp3:okhttp:3.12.3)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/squareup/okhttp3/okhttp/3.12.3/okhttp-3.12.3.jar'.
         > Could not GET 'https://repo.maven.apache.org/maven2/com/squareup/okhttp3/okhttp/3.12.3/okhttp-3.12.3.jar'.
            > Read timed out
   > Could not download gson-2.8.6.jar (com.google.code.gson:gson:2.8.6)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar'.
            > Read timed out
2021-09-06 20:41:42 +02:00
Petr Pokorny
c7471b8192 Use github-hosted runner for android builds 2021-09-06 19:49:53 +02:00
Petr Pokorny
d62ff400c6 Replacing hardcoded configuration with configurable API and removing Mapbox assets (#90)
* Refactoring online file source so that tile server configuration is not hardcoded - part 1

* Added default templates

* Update from master

* Renaming MGLAccountManager to MGLSettings. Passing ResourceOptions and TileServerOptions to relevant classes and method in order to remove mapbox hardocded configuration

* Fixing build

* Addedm missing theme

* Unit tests fixes

* Fixing unit tests, adding factory methods for creating predefined configuration.

* Fixing mapbox unit tests

* Additional unit test fixes

* Making MapboxConfiguration default

* Making get/set resource options available in all classes that inherits from FileSource

* Making get/set resource options available in all classes that inherits from FileSource - part 2

* Fixes for Android

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Removing hardcoded configuration in iOS project - part 1

* Fixing wrong file extension, making use of tile server options.

* Use apiKey and MGL_API_KEY everywhere

* Just a rename

* Re-enabling tests and improving MGLSettings init

* Removing mapbox hardcoded configuration, using api key everywhere, implementing JNI conversion for TileServerOptions

* Lint issues.

* Integrating configurable tile server properties into Android SDK - part 2

* Removing mabox accounts

* Exposing multiple configurations to Android SDK - bug fixes

* Removing TileServerOptions from public interface - native methods dont work before mapbox-gl library is loaded

* Adding support for configurable predefined styles

* Migrating predefined styles in test app + cleanup

* Parameter fix

* Bug fixes

* Fixing render test build

* Fixing offline tester

* Fixing benchmark tool

* Fix: typo in method name

* Adding code for public access to TileServerOptions

* Bug fixes and debug code removal

* Fixes for macOS, adding unit tests from MapLibre, removing redundant members from OnlineFileSource

* Unit test fixes

* MacOS test app - migrating to configurable tile server options, part 1

* Fixing offline maps

* Migrating macOS test app to MapTiler

* Minor improvements

* Putting back apiKey test

* Added unit tests for MapTiler configuration

* Migrating test resources to MapTiler

* minor fix

* A few fixes

* Fixing macOS tests, removing feedback functionality

* Migrating ios test app to MapTiler

* Migrating ui tests

* UI tests fix

* Benchmarking app fix

* Cleanup and strings updates

* Migrating benchmark app to maptiler

* API key injection in benchmark app

* Putting back release configuration

* Additional tests and fixing issues identified by thread sanitizer.

* Removing test filters

* Fixes and addressing lint issues

* More Maptiler tests + minro fix

* Android instrumentation test migration to MapTiler. Exposing missing TileServerOptions in Android SDK. Minor fixes.

* No requirements on API key format.

* Fixing offline cache test tool

* Adding configurable domain name for sources, adding source domain int MapTiler configuration, cleanup

* Migrating tests to MapTiler, adding code for canonicalizing URLs, removing mapbox stuff from comments, cleanup

* More tests

* Updated database size

* Lint issues

* Fixed test

* Updating developer config API key

* Fixes for Android, propagaing updated tileServerOptions to native file sources, more tests

* Just a few more fixes

* Propagating updated settings to file sources + additional unit test

* Lint issues

* Removing test filter and fixing incorrect uri

* Release preparation

* macos release notes
2021-06-29 12:44:51 +02:00
Petr Pokorny
75d915eff1 Update ios-release.yml 2021-05-20 13:14:50 +02:00
Petr Pokorny
692c66cfc9 Update ios-ci.yml 2021-05-20 13:14:31 +02:00
Petr Pokorny
c9f3fd1c4f Update ios-release.yml 2021-05-20 13:13:43 +02:00
Petr Pokorny
0079d07e10 Update ios-ci.yml 2021-05-20 13:13:07 +02:00
Petr Pokorny
8818a0c92e Update android-release.yml
Fixing signing key issues
2021-05-06 18:38:27 +02:00
Petr Pokorny
c93c0857ba Update macos-release.yml
Allow manual trigger only
2021-05-06 18:30:57 +02:00
Petr Pokorny
18623250e7 Update ios-release.yml
Allow manual trigger only
2021-05-06 18:30:40 +02:00
Petr Pokorny
f6bbb080b8 Update ios-pre-release.yml
Allow manual trigger only
2021-05-06 18:30:13 +02:00
Petr Pokorny
df55866c09 Update android-release.yml
Allow manual trigger only
2021-05-06 18:29:51 +02:00
Petr Pokorny
29cb016c2c Update android-release.yml 2021-05-06 17:10:45 +02:00
Petr Pokorny
14dabbe539 Update ios-pre-release.yml
Update to match pre-release (metal) branch
2021-05-06 16:10:34 +02:00
Petr Pokorny
82a3917fb4 Use hosted runner 2021-05-06 15:46:19 +02:00
Petr Pokorny
dbeeb7eceb Migrate from bintray (#77)
* Bug fixes & cleanup

* Ignoring private files

* Bug fixes found during testing + added script to generate pgp key

* Added step for closing and releasing staging repository

* Update build.gradle

Disabling test coverage due to timeouts
2021-05-04 19:46:30 +02:00
Petr Pokorny
343cd1da65 Update ios-ci.yml
Setting runner back to macos 11.0
2021-05-04 13:02:16 +02:00
Petr Pokorny
67f6e5e0aa Update ios-ci.yml
Testing ci unit tests on metal branch
2021-05-03 22:43:45 +02:00
Petr Pokorny
e7ff010646 Update ios-ci.yml
Testing macos-11.0 test runner
2021-05-02 21:21:28 +02:00
Petr Pokorny
0a12a41c9a Update android-ci.yml 2021-05-02 12:16:32 +02:00
Petr Pokorny
ca5f89ae70 Update ios-pre-release.yml 2021-05-02 12:15:45 +02:00
Petr Pokorny
c9aee6c743 Update ios-release.yml 2021-05-02 12:15:31 +02:00
Petr Pokorny
96baf47357 Update android-release.yml 2021-05-02 12:15:06 +02:00
Petr Pokorny
f3aae2da65 Added support for pre-releases (currently metal) 2021-04-21 16:49:40 +02:00
Rob Labs
dba5d968b2 Automated UI Tests for iOS (#47)
* initial UITests template from Xcode add new Test Target

* Set deployment target for the UITests to match the iosapp

* Bundle versions match iosapp

* Save a PNG screenshot to the UITest results

* Turn on Debug tile boundaries, tile info and FPS ornaments

* First iteration of bench scheme UITests

* Enable bench UITests while in the `iosapp` scheme

* Add flag to `make iproj CI=1` to run in headless mode (for GitHub Actions & Xcode Server Bots)

* Write the Benchmark log to the Documents Directory

* Add Zero Configuration (Zeroconf) Styles to facilitate automated testing without an access token nor secrets

* Add `make ios-test`

* Add UI Tests to CI for iOS

* Ignore prompts for *precise or reduced accuracy for GPS*
2021-04-06 21:02:11 +02:00
Petr Pokorny
b1536d1a7c Trying to solve maven timeouts using self hosted runner 2021-03-12 20:53:22 +01:00
Petr Pokorny
2fdf124f65 Fixing Android CI build for pull requests 2021-03-08 19:16:53 +01:00
Petr Pokorny
62ab3e4340 Repository migration from MapTiler to MapLibre 2021-02-04 11:53:40 +01:00