[ci] fix build environment issue
parent
b91b1780c4
commit
3c160e2167
30
.travis.yml
30
.travis.yml
|
@ -1,9 +1,13 @@
|
||||||
# vim: set ts=2 sts=2 sw=2 expandtab :
|
# vim: set ts=2 sts=2 sw=2 expandtab :
|
||||||
dist: xenial
|
dist: bionic
|
||||||
sudo: required
|
language: shell
|
||||||
language: bash
|
os: linux
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- python3-github
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
|
@ -15,9 +19,6 @@ before_install:
|
||||||
- chmod +x docker-build gen-index
|
- chmod +x docker-build gen-index
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install -y python3-pip python3-setuptools
|
|
||||||
- sudo pip3 install --upgrade pip
|
|
||||||
- sudo pip install PyGithub
|
|
||||||
- ./docker-build --name ${DISTRO} --config .build.yml --install
|
- ./docker-build --name ${DISTRO} --config .build.yml --install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -25,18 +26,19 @@ script:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: pages
|
- provider: pages
|
||||||
github-token: $GITHUB_TOKEN
|
edge: true
|
||||||
#keep-history: true
|
token: $GITHUB_TOKEN
|
||||||
skip_cleanup: true
|
keep_history: false
|
||||||
committer-from-gh: true
|
committer_from_gh: true
|
||||||
target-branch: gh-pages
|
target_branch: gh-pages
|
||||||
local-dir: html-report
|
local_dir: html-report
|
||||||
|
strategy: git
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: ${DISTRO} =~ ^fedora.*$
|
condition: ${DISTRO} =~ ^fedora.*$
|
||||||
- provider: script
|
- provider: script
|
||||||
|
edge: true
|
||||||
script: ./docker-build --verbose --config .build.yml --release github
|
script: ./docker-build --verbose --config .build.yml --release github
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$"
|
condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$"
|
||||||
|
@ -53,7 +55,7 @@ after_success:
|
||||||
fi'
|
fi'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DISTRO="archlinux/base"
|
- DISTRO="archlinux:latest"
|
||||||
- DISTRO="debian:testing"
|
- DISTRO="debian:testing"
|
||||||
- DISTRO="fedora:latest"
|
- DISTRO="fedora:latest"
|
||||||
- DISTRO="ubuntu:devel"
|
- DISTRO="ubuntu:devel"
|
||||||
|
|
Loading…
Reference in New Issue