Skip to content

Commit 6df9ae3

Browse files
committed
TEZ-4467: Migrate from Travis CI to GitHub Actions
1 parent 97cc788 commit 6df9ae3

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

.travis.yml renamed to .github/workflows/build.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,26 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
name: Build CI with different platforms/configs
1617

17-
dist: trusty
18-
19-
language: java
20-
21-
sudo: required
22-
23-
env: MAVEN_OPTS="-Xmx2G -XX:MaxPermSize=512M"
24-
25-
script:
26-
- jdk_switcher use oraclejdk8
27-
- mvn -B clean install package -DskipTests=true -Dmaven.javadoc.skip=true
18+
on:
19+
push:
20+
branches:
21+
- 'master'
22+
pull_request:
23+
branches:
24+
- 'master'
2825

26+
jobs:
27+
build:
28+
strategy:
29+
matrix:
30+
java-version: [8, 11]
31+
os: [ubuntu-latest, macos-latest]
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-java@v1
36+
with:
37+
java-version: ${{ matrix.java-version }}
38+
- run: mvn clean install -DskipTests -Dmaven.javadoc.skip=true

0 commit comments

Comments
 (0)