From c09122cc3d5024b76405b54e7e1ea4564c29bc2f Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Fri, 6 Nov 2020 19:02:46 +0000 Subject: Replace Travis CI with GitHub Actions --- .github/workflows/linux.yml | 21 +++++++++++++++++++++ .travis.yml | 36 ------------------------------------ 2 files changed, 21 insertions(+), 36 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9062d98..cd55262 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -123,3 +123,24 @@ jobs: - name: clang-tidy run: /usr/lib/llvm-10/share/clang/run-clang-tidy.py -header-filter=src working-directory: build-clang + + build-with-python: + runs-on: [ubuntu-latest] + container: + image: ${{ matrix.image }} + strategy: + matrix: + image: ['ubuntu:14.04', 'ubuntu:16.04', 'ubuntu:18.04'] + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + apt update + apt install -y g++ python3 + - name: ${{ matrix.image }} + run: | + python3 configure.py --bootstrap + ./ninja all + ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots + python3 misc/ninja_syntax_test.py + ./misc/output_test.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e5d7d2b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -matrix: - include: - - os: linux - dist: precise - compiler: gcc - - os: linux - dist: precise - compiler: clang - - os: linux - dist: trusty - compiler: gcc - - os: linux - dist: trusty - compiler: clang - - os: linux - dist: xenial - compiler: gcc - - os: linux - dist: xenial - compiler: clang - - os: osx - osx_image: xcode10 - - os: osx - osx_image: xcode10.1 -sudo: false -language: cpp -before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install re2c ; fi - - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install re2c python ; fi -script: - - ./misc/ci.py - - python3 configure.py --bootstrap - - ./ninja all - - ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots - - ./misc/ninja_syntax_test.py - - ./misc/output_test.py -- cgit v0.12