Skip to content

Commit

Permalink
ci: add simple CI based on GitHub actions
Browse files Browse the repository at this point in the history
- Delete old .travis.yml file
- Add new .github/workflow/precommit_testing.yml

Part of tarantool/tarantool#4972
Part of #272
Closes #293
  • Loading branch information
ylobankov committed Sep 29, 2021
1 parent 3135a77 commit eb3c799
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 174 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/fast_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: fast_testing

on:
push:
pull_request:
workflow_dispatch:

jobs:
linux:
# We want to run on external PRs, but not on our own internal
# PRs as they'll be run by the push to the branch.
#
# The main trick is described here:
# https://github.com/Dart-Code/Dart-Code/pull/2375
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

strategy:
fail-fast: false
matrix:
tarantool:
# TODO: Add 2.9 version after https://github.com/tarantool/vshard/issues/294
# is resolved.
- '1.10'
- '2.7'
- '2.8'
#- '2.9'

runs-on: ubuntu-latest
steps:
- name: Install tarantool ${{ matrix.tarantool }}
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: ${{ matrix.tarantool }}

- name: Clone the module
uses: actions/checkout@v2
with:
# Fetch the entire history for all branches and tags. It is needed for
# upgrade testing.
fetch-depth: 0
# Enable recursive submodules checkout as test-run git module is used
# for running tests.
submodules: recursive

- name: Install test requirements
run: pip3 install --user -r test-run/requirements.txt

- run: cmake .
- run: make test
174 changes: 0 additions & 174 deletions .travis.yml

This file was deleted.

0 comments on commit eb3c799

Please sign in to comment.