You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by he...@apache.org on 2020/06/23 21:15:38 UTC

[netbeans] branch master updated: Move macOS tests to GitHub action

This is an automated email from the ASF dual-hosted git repository.

hectorespert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dccfed  Move macOS tests to GitHub action
     new 0636a9e  Merge pull request #2180 from hectorespert/github_macos_action
3dccfed is described below

commit 3dccfed705d19d1ed1ca0eb2550da911d9cc210d
Author: Hector Espert <he...@gmail.com>
AuthorDate: Mon Jun 8 20:39:31 2020 +0200

    Move macOS tests to GitHub action
---
 .github/workflows/main.yml | 27 +++++++++++++++++++++++++++
 .travis.yml                | 23 -----------------------
 2 files changed, 27 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f2e107f..10f0c43 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -98,3 +98,30 @@ jobs:
 
       - name: Test Netbeans Build System
         run: ant -Dcluster.config=basic localtest
+        
+  macos:
+    name: MacOS build
+    runs-on: macos-10.15
+    steps:
+      - uses: actions/checkout@v2
+        
+      - uses: actions/cache@v2
+        with:
+          path: |
+            ~/.hgexternalcache
+            ~/Library/Caches/Homebrew
+          key: ${{ runner.os }}-${{ hashFiles('**/external/binaries-list') }}
+          restore-keys: ${{ runner.os }}-
+
+      - run: brew install ant
+
+      - name: Clean
+        run: ant clean
+
+      - name: Build
+        run: ant build
+
+      - name: Test
+        run: |
+          ant -f platform/masterfs.macosx test
+          ant -f platform/core.network test
diff --git a/.travis.yml b/.travis.yml
index afdce8f..f7350fe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -714,26 +714,3 @@ matrix:
             - ant $OPTS build
           script:
             - nbbuild/travis/scripting.sh
-
-        - name: MacOS tests
-          language: minimal
-          os: osx
-          osx_image: xcode10.1
-          addons:
-            homebrew:
-              packages:
-                - openjdk@11
-                - ant
-              update: true
-          env:
-            - OPTS="-silent -Dcluster.config=platform -Dpermit.jdk9.builds=true -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true -Dvanilla.javac.exists=true"
-          install:
-            - sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
-            - export PATH="/usr/local/opt/openjdk@11/bin:$PATH"
-            - export JAVA_HOME=`/usr/libexec/java_home -v 11`
-          before_script:
-            - ant $OPTS clean
-            - ant $OPTS build
-          script:
-            - ant $OPTS -f platform/masterfs.macosx test
-            - ant $OPTS -f platform/core.network test


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists