GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — objectbox-java/.gitlab-ci.yml at main · defuj/objectbox-java Expand file tree/ Copy path.gitlab-ci.ymlMore file actions 160 lines (145 loc) · 5.78 KB / Copy path.gitlab-ci.ymlFile metadata and controls160 lines (145 loc) · 5.78 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 # Default image for linux builds image: objectboxio/buildenv:21.11.11-centos7 # Assumes these environment variables are configured in GitLab CI/CD Settings: # - SONATYPE_USER # - SONATYPE_PWD # - GOOGLE_CHAT_WEBHOOK_JAVA_CI # Additionally, Gradle scripts assume these Gradle project properties are set: # https://docs.gradle.org/current/userguide/build_environment.html#sec:project_properties # - ORG_GRADLE_PROJECT_signingKeyFile # - ORG_GRADLE_PROJECT_signingKeyId # - ORG_GRADLE_PROJECT_signingPassword variables: # Disable the Gradle daemon. Gradle may run in a Docker container with a shared # Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job # Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME. # Configure file.encoding to always use UTF-8 when running Gradle. GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8" GITLAB_REPO_ARGS: "-PgitlabUrl=$CI_SERVER_URL -PgitlabTokenName=Job-Token -PgitlabPrivateToken=$CI_JOB_TOKEN" CENTRAL_REPO_ARGS: "-PsonatypeUsername=$SONATYPE_USER -PsonatypePassword=$SONATYPE_PWD" # CI_COMMIT_REF_SLUG is the branch or tag name, but web-safe (only 0-9, a-z) VERSION_ARGS: "-PversionPostFix=$CI_COMMIT_REF_SLUG" # Using multiple test stages to avoid running some things in parallel (see job notes). stages: - test - upload-to-internal - upload-to-central - package-api-docs - triggers test: stage: test tags: [ docker, linux, x64 ] variables: # CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work. LC_ALL: "en_US.UTF-8" before_script: # Print Gradle and JVM version info - ./gradlew -version # Remove any previous JVM (Hotspot) crash log. # "|| true" for an OK exit code if no file is found - rm **/hs_err_pid*.log || true script: - ./ci/test-with-asan.sh $GITLAB_REPO_ARGS $VERSION_ARGS clean build artifacts: when: always paths: - "**/hs_err_pid*.log" # Only on JVM (Hotspot) crash. - "**/build/reports/spotbugs/*.html" reports: junit: "**/build/test-results/**/TEST-*.xml" .test-template: before_script: # Print Gradle and JVM version info - ./gradlew -version # Remove any previous JVM (Hotspot) crash log. # "|| true" for an OK exit code if no file is found - rm **/hs_err_pid*.log || true artifacts: when: always paths: - "**/hs_err_pid*.log" # Only on JVM (Hotspot) crash. reports: junit: "**/build/test-results/**/TEST-*.xml" test-windows: extends: .test-template needs: ["test"] tags: [ windows ] script: ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build test-macos: extends: .test-template needs: ["test"] tags: [mac11+, x64] script: ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build # Address sanitizer is only available on Linux runners (see script). .test-asan-template: extends: .test-template tags: [ docker, linux, x64 ] variables: # CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work. LC_ALL: "en_US.UTF-8" script: # Note: do not run check task as it includes SpotBugs. - ./ci/test-with-asan.sh $GITLAB_REPO_ARGS $VERSION_ARGS clean :tests:objectbox-java-test:test # Test oldest supported and a recent JDK. # Note: can not run these in parallel using a matrix configuration as Gradle would step over itself. test-jdk-8: extends: .test-asan-template needs: ["test"] variables: TEST_JDK: 8 test-jdk-16: extends: .test-asan-template needs: ["test-jdk-8"] variables: TEST_JDK: 16 test-jdk-x86: extends: .test-template needs: ["test-windows"] tags: [ windows ] variables: # TEST_WITH_JAVA_X86 makes objectbox-java-test use 32-bit java executable and therefore # 32-bit ObjectBox to run tests (see build.gradle file). # Note: assumes JAVA_HOME_X86 is set to 32-bit JDK path. TEST_WITH_JAVA_X86: "true" script: ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build upload-to-internal: stage: upload-to-internal tags: [ docker, x64 ] script: - ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS publishMavenJavaPublicationToGitLabRepository upload-to-central: stage: upload-to-central tags: [ docker, x64 ] only: - publish before_script: - ci/send-to-gchat.sh "$GOOGLE_CHAT_WEBHOOK_JAVA_CI" --thread $CI_COMMIT_SHA "*Releasing Java library:* job $CI_JOB_NAME from branch $CI_COMMIT_BRANCH ($CI_COMMIT_SHORT_SHA)..." script: # Note: supply internal repo as tests use native dependencies that might not be published, yet. - ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS $CENTRAL_REPO_ARGS publishMavenJavaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository after_script: # Also runs on failure, so show CI_JOB_STATUS. - ci/send-to-gchat.sh "$GOOGLE_CHAT_WEBHOOK_JAVA_CI" --thread $CI_COMMIT_SHA "*Releasing Java library:* *$CI_JOB_STATUS* for $CI_JOB_NAME" - ci/send-to-gchat.sh "$GOOGLE_CHAT_WEBHOOK_JAVA_CI" --thread $CI_COMMIT_SHA "Check https://repo1.maven.org/maven2/io/objectbox/ in a few minutes." package-api-docs: stage: package-api-docs tags: [ docker, x64 ] only: - publish script: - ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS :objectbox-java:packageJavadocForWeb after_script: - ci/send-to-gchat.sh "$GOOGLE_CHAT_WEBHOOK_JAVA_CI" --thread $CI_COMMIT_SHA "API docs for web available as job artifact $CI_JOB_URL" artifacts: paths: - "objectbox-java/build/dist/objectbox-java-web-api-docs.zip" trigger-plugin: stage: triggers except: - schedules # Do not trigger when run on schedule, e.g. integ tests have own schedule. inherit: variables: false allow_failure: true # Branch might not exist, yet, in plugin project. trigger: project: objectbox/objectbox-plugin branch: $CI_COMMIT_BRANCH |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |