mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-15 17:47:13 +00:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
language: python
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
# We need an older version of python in order to have compatibility with
|
|
# older versions of libc
|
|
dist: trusty
|
|
python: 3.6
|
|
services:
|
|
- docker
|
|
env:
|
|
BUILD_BINARY: "true"
|
|
- os: linux
|
|
dist: xenial
|
|
python: 3.6
|
|
services:
|
|
- docker
|
|
env:
|
|
BUILD_DOCKER: "true"
|
|
- os: linux
|
|
dist: xenial
|
|
python: 3.6
|
|
services:
|
|
- docker
|
|
env:
|
|
BUILD_PYPI: "true"
|
|
- os: osx
|
|
language: generic
|
|
env:
|
|
BUILD_BINARY: "true"
|
|
|
|
script:
|
|
- make ci-info
|
|
- make ci-install
|
|
- make test
|
|
- make ci-bundle
|
|
|
|
deploy:
|
|
# Create github release and push binary to github
|
|
- provider: script
|
|
script: make ci-github
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
condition: $BUILD_BINARY = true
|
|
|
|
# Push docker images to docker hub
|
|
- provider: script
|
|
script: make ci-images
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
condition: $BUILD_DOCKER = true && $TRAVIS_TAG != "nightly"
|
|
|
|
# Push to pypi
|
|
- provider: script
|
|
script: make ci-pypi
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
condition: $BUILD_PYPI = true && $TRAVIS_TAG != "nightly"
|