gatuno-terminal/.travis.yml

60 lines
1.9 KiB
YAML
Raw Normal View History

2019-02-21 11:04:31 -06:00
# vim: set ts=2 sts=2 sw=2 expandtab :
dist: xenial
sudo: required
language: bash
services:
- docker
2019-04-27 21:28:47 -05:00
branches:
except:
- gh-pages
2019-02-21 11:04:31 -06:00
before_install:
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
2019-04-27 21:28:47 -05:00
- curl -Ls -o gen-index https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/gen-index.sh
- chmod +x docker-build gen-index
2019-02-21 11:04:31 -06:00
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
2019-02-21 11:04:31 -06:00
script:
- ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts
2019-02-21 11:04:31 -06:00
2019-04-04 09:44:53 -06:00
deploy:
2019-04-27 21:28:47 -05:00
- provider: pages
github-token: $GITHUB_TOKEN
#keep-history: true
skip_cleanup: true
committer-from-gh: true
target-branch: gh-pages
local-dir: html-report
on:
all_branches: true
condition: ${DISTRO} =~ ^fedora.*$
2019-04-04 09:44:53 -06:00
- provider: script
script: ./docker-build --verbose --config .build.yml --release github
2019-04-04 09:44:53 -06:00
skip_cleanup: true
on:
tags: true
condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$"
2019-04-27 21:28:47 -05:00
after_success:
- 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" && ${DISTRO} =~ ^fedora.*$ ]]; then
REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// });
REPO_NAME=${REPO_SLUG_ARRAY[1]};
URL="https://${REPO_NAME}.mate-desktop.dev";
COMMENT="Code analysis completed";
curl -H "Authorization: token $GITHUB_TOKEN" -X POST
-d "{\"state\": \"success\", \"description\": \"$COMMENT\", \"context\":\"scan-build\", \"target_url\": \"$URL\"}"
https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA};
fi'
2019-02-21 11:04:31 -06:00
env:
- DISTRO="archlinux/base"
- DISTRO="debian:testing"
2019-11-24 05:30:07 -06:00
- DISTRO="fedora:latest"
- DISTRO="ubuntu:19.10"