Debian Codegraph @

.travis.yml

raw symbols SCIP
1 # vim: set ts=2 sts=2 sw=2 expandtab :
2 dist: jammy
3 language: shell
4 os: linux
5 services:
6 - docker
7 addons:
8 apt:
9 packages:
10 - python3-pip
11 - python3-setuptools
12
13 branches:
14 except:
15 - gh-pages
16
17 before_install:
18 - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
19 - curl -Ls -o gen-index https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/gen-index.sh
20 - chmod +x docker-build gen-index
21
22 install:
23 - pip3 install PyGithub
24 - ./docker-build --name ${DISTRO} --config .build.yml --install
25
26 script:
27 - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts
28
29 notifications:
30 irc:
31 if: (tag OR branch = master) AND
32 repo = mate-desktop/engrampa
33 channels:
34 - "irc.libera.chat#mate-dev"
35 template:
36 - "[%{repository_name}] %{author}: %{commit_subject}"
37 - "[%{branch}] %{commit} %{message} %{build_url}"
38 on_success: never
39 on_failure: always
40
41 deploy:
42 - provider: pages
43 edge: true
44 token: $GITHUB_TOKEN
45 keep_history: false
46 committer_from_gh: true
47 target_branch: gh-pages
48 local_dir: html-report
49 strategy: git
50 on:
51 all_branches: true
52 condition: ${DISTRO} =~ ^fedora.*$
53 - provider: script
54 edge: true
55 script: ./docker-build --verbose --config .build.yml --release github
56 on:
57 tags: true
58 condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$"
59
60 after_success:
61 - 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" && ${DISTRO} =~ ^fedora.*$ ]]; then
62 REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// });
63 REPO_NAME=${REPO_SLUG_ARRAY[1]};
64 URL="https://${REPO_NAME}.mate-desktop.dev";
65 COMMENT="Code analysis completed";
66 curl -H "Authorization: token $GITHUB_TOKEN" -X POST
67 -d "{\"state\": \"success\", \"description\": \"$COMMENT\", \"context\":\"scan-build\", \"target_url\": \"$URL\"}"
68 https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA};
69 fi'
70
71 env:
72 # - DISTRO="archlinux:latest"
73 - DISTRO="debian:testing"
74 - DISTRO="fedora:latest"
75 # - DISTRO="ubuntu:rolling"