diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..1618bc4 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + Build: + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Setup Python + run: | + python3 -m pip install cpplint + - name: Setup@Ubuntu + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get install -y doxygen wget graphviz unzip + - name: Lint + if: startsWith(matrix.os, 'ubuntu') + run: | + ./tests/scripts/task_lint.sh + - name: Test + run: | + ./tests/scripts/task_build.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1012ea3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -sudo: false - -dist: trusty - -language: cpp - -os: - - linux - - osx - -osx_image: xcode8 - -env: - # code analysis - - TASK=all_test - -branches: - only: - - main - -matrix: - exclude: - - os: osx - env: TASK=lint - -# dependent apt packages -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - doxygen - - wget - - graphviz - - unzip - -install: - - source tests/travis/setup.sh - -script: - - tests/travis/run_test.sh - -cache: - directories: - - ${HOME}/.cache/usr - diff --git a/README.md b/README.md index f2aa0e2..16fd406 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DLPack: Open In Memory Tensor Structure -[![Build Status](https://travis-ci.org/dmlc/dlpack.svg?branch=main)](https://travis-ci.org/dmlc/dlpack) +[![Build Status](https://github.com/dmlc/dlpack/workflows/CI/badge.svg)](https://github.com/dmlc/dlpack/actions?query=workflow%3ACI) DLPack is an open in-memory tensor structure to for sharing tensor among frameworks. DLPack enables diff --git a/docs/Doxyfile b/docs/Doxyfile index a716277..ff4fa7b 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -2040,12 +2040,6 @@ EXTERNAL_GROUPS = YES #EXTERNAL_PAGES = YES -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of 'which perl'). -# The default file (with absolute path) is: /usr/bin/perl. - -PERL_PATH = /usr/bin/perl - #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- @@ -2059,14 +2053,6 @@ PERL_PATH = /usr/bin/perl CLASS_DIAGRAMS = YES -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see: -# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = # You can include diagrams made with dia in doxygen documentation. Doxygen will # then run dia to produce the diagram and insert it in the documentation. The diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh deleted file mode 100755 index 38f3fd3..0000000 --- a/tests/travis/run_test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then - if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then - ./tests/scripts/task_lint.sh || exit -1 - fi -fi - -if [ ${TASK} == "build" ] || [ ${TASK} == "all_test" ]; then - ./tests/scripts/task_build.sh || exit -1 -fi - -echo "All travis test passed.." diff --git a/tests/travis/setup.sh b/tests/travis/setup.sh deleted file mode 100644 index 634c488..0000000 --- a/tests/travis/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then - if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then - pip install --user cpplint - fi -fi \ No newline at end of file