mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
ci: Travis and AppVeyor support removed
This commit is contained in:
44
.travis.yml
44
.travis.yml
@@ -1,44 +0,0 @@
|
||||
linux: &linux
|
||||
os: linux
|
||||
dist: xenial
|
||||
language: python
|
||||
python: "3.8"
|
||||
services:
|
||||
- docker
|
||||
osx: &osx
|
||||
os: osx
|
||||
language: generic
|
||||
matrix:
|
||||
include:
|
||||
# - <<: *linux
|
||||
# env: CONAN_GCC_VERSIONS=9 CONAN_DOCKER_IMAGE=conanio/gcc9
|
||||
- <<: *linux
|
||||
env: CONAN_GCC_VERSIONS=10 CONAN_DOCKER_IMAGE=conanio/gcc10 DEPLOY_DOCS=TRUE
|
||||
|
||||
install:
|
||||
- chmod +x .travis/install.sh
|
||||
- ./.travis/install.sh
|
||||
|
||||
script:
|
||||
- chmod +x .travis/run.sh
|
||||
- ./.travis/run.sh
|
||||
- |
|
||||
# Prepare documentation for deployment
|
||||
if [ -n "$DEPLOY_DOCS" ]; then
|
||||
rm -rf gh-pages
|
||||
sudo -E docker run --name docker_deploy --rm -dt $CONAN_DOCKER_IMAGE bash
|
||||
sudo -E docker exec docker_deploy conan remote add conan-mpusz https://api.bintray.com/conan/mpusz/conan-mpusz
|
||||
sudo -E docker exec docker_deploy sh -c "conan search -r conan-mpusz mp-units --raw | tail -n1 | xargs -I % conan install % -g deploy -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -b missing"
|
||||
sudo -E docker cp docker_deploy:/home/conan/mp-units/share/doc/mp-units/sphinx gh-pages
|
||||
sudo -E docker stop docker_deploy
|
||||
fi
|
||||
|
||||
deploy:
|
||||
provider: pages
|
||||
skip_cleanup: true
|
||||
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
|
||||
keep_history: true
|
||||
local_dir: gh-pages
|
||||
on:
|
||||
branch: master
|
||||
condition: $DEPLOY_DOCS = TRUE
|
@@ -1,18 +0,0 @@
|
||||
build: false
|
||||
|
||||
environment:
|
||||
mp-units:CONAN_RUN_TESTS: 1
|
||||
PYTHON: "C:\\Python37"
|
||||
|
||||
matrix:
|
||||
- MINGW_CONFIGURATIONS: "9@x86_64@seh@posix"
|
||||
|
||||
install:
|
||||
- git submodule update --init --recursive
|
||||
- set PATH=%PATH%;%PYTHON%/Scripts/
|
||||
- pip.exe install conan --upgrade
|
||||
- pip.exe install conan_package_tools
|
||||
- conan user # It creates the conan data directory
|
||||
|
||||
test_script:
|
||||
- python build.py
|
Reference in New Issue
Block a user