1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

update ci

This commit is contained in:
neargye 2021-04-14 14:02:49 +03:00
parent f9e08ba792
commit e5c1508465
3 changed files with 0 additions and 174 deletions

View file

@ -1,21 +0,0 @@
version: "{branch} #{build}"
image:
- Visual Studio 2017
- Visual Studio 2019
platform:
- Win32
- x64
build:
parallel: true
build_script:
- cmake -A %PLATFORM%
- cmake --build . --config Debug
- cmake --build . --config Release
test_script:
- ctest --output-on-failure -C Debug
- ctest --output-on-failure -C Release

View file

@ -1,150 +0,0 @@
os: linux # Use linux unless specified otherwise.
dist: bionic
language: cpp
jobs:
include:
- os: linux
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- g++-9
- bazel
env:
- CXX_COMPILER=g++-9 CC_COMPILER=gcc-9
- os: linux
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- g++-10
- bazel
env:
- CXX_COMPILER=g++-10 CC_COMPILER=gcc-10
- os: linux
compiler: clang++
addons:
apt:
sources:
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- clang-7
- bazel
env:
- CXX_COMPILER=clang++-7 CC_COMPILER=clang-7
- os: linux
compiler: clang++
addons:
apt:
sources:
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- clang-8
- bazel
env:
- CXX_COMPILER=clang++-8 CC_COMPILER=clang-8
- os: linux
compiler: clang++
addons:
apt:
sources:
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- clang-9
- bazel
env:
- CXX_COMPILER=clang++-9 CC_COMPILER=clang-9
- os: linux
compiler: clang++
addons:
apt:
sources:
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://bazel.build/bazel-release.pub.gpg'
packages:
- clang-10
- bazel
env:
- CXX_COMPILER=clang++-10 CC_COMPILER=clang-10
- os: osx
compiler: clang++
addons:
homebrew:
packages:
- bazel
osx_image: xcode10.3
env:
- CXX_COMPILER=clang++ CC_COMPILER=clang
- os: osx
compiler: clang++
addons:
homebrew:
packages:
- bazel
osx_image: xcode11.6
env:
- CXX_COMPILER=clang++ CC_COMPILER=clang
- os: osx
compiler: clang++
addons:
homebrew:
packages:
- bazel
osx_image: xcode12.2
env:
- CXX_COMPILER=clang++ CC_COMPILER=clang
install:
- export CC=${CC_COMPILER}
- export CXX=${CXX_COMPILER}
- JOBS=2 # Travis machines have 2 cores.
before_script:
- rm -rf build
- mkdir -p build
- cd build
script:
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- cmake --build . --config Debug -- -j${JOBS}
- ctest --output-on-failure -C Debug -j${JOBS}
- rm -rf ./*
- cmake -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --config Release -- -j${JOBS}
- ctest --output-on-failure -C Release -j${JOBS}
- cd ..
- |
if command -v bazel &> /dev/null; then
bazel test //... --curses no -j ${JOBS}
fi
notifications:
email: false

View file

@ -14,9 +14,6 @@
[![Vcpkg package](https://img.shields.io/badge/Vcpkg-package-blueviolet)](https://github.com/microsoft/vcpkg/tree/master/ports/magic-enum) [![Vcpkg package](https://img.shields.io/badge/Vcpkg-package-blueviolet)](https://github.com/microsoft/vcpkg/tree/master/ports/magic-enum)
[![Build2 package](https://img.shields.io/badge/Build2-package-blueviolet)](https://www.cppget.org/magic_enum?q=magic_enum) [![Build2 package](https://img.shields.io/badge/Build2-package-blueviolet)](https://www.cppget.org/magic_enum?q=magic_enum)
[![License](https://img.shields.io/github/license/Neargye/magic_enum.svg)](LICENSE) [![License](https://img.shields.io/github/license/Neargye/magic_enum.svg)](LICENSE)
[![Build status](https://travis-ci.org/Neargye/magic_enum.svg?branch=master)](https://travis-ci.org/Neargye/magic_enum)
[![Build status](https://ci.appveyor.com/api/projects/status/0rpr966p9ssrvwu3/branch/master?svg=true)](https://ci.appveyor.com/project/Neargye/magic-enum-hf8vk/branch/master)
[![Codacy badge](https://api.codacy.com/project/badge/Grade/64d04f150af14c3e8bd1090057b68538)](https://www.codacy.com/app/Neargye/magic_enum?utm_source=github.com&utm_medium=referral&utm_content=Neargye/magic_enum&utm_campaign=Badge_Grade)
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/CmWdR9oPY4vhWYuH) [![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/CmWdR9oPY4vhWYuH)
[![Compiler explorer](https://img.shields.io/badge/compiler_explorer-online-blue.svg)](https://godbolt.org/z/BxfmsH) [![Compiler explorer](https://img.shields.io/badge/compiler_explorer-online-blue.svg)](https://godbolt.org/z/BxfmsH)