This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
43 lines (42 loc) · 1.94 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if: '(branch = master OR type = pull_request OR commit_message =~ /.*#trigger_ci.*/) AND (NOT commit_message =~ /.*#skip_ci.*/) AND ( tag IS blank )'
matrix:
include:
- language: node_js
node_js: 11
name: Astrophoto Plus
dist: bionic
os: linux
before_install:
- sudo apt-get update
- sudo apt-get install -y cmake
- export VERSION_NUMBER_CI=$(( $TRAVIS_BUILD_NUMBER + 801 ))
- export CI=false
install:
before_script:
- mkdir ${TRAVIS_BUILD_DIR}/build
- cd ${TRAVIS_BUILD_DIR}/build
script:
- cmake ${TRAVIS_BUILD_DIR} -DCMAKE_INSTALL_PREFIX=/usr -DCONFDIR=/etc -DVERSION_SUFFIX=-b${VERSION_NUMBER_CI}
- make -j$(nproc) package
- cmake ${TRAVIS_BUILD_DIR} -DPACKAGE_TARGET=raspbian -DCMAKE_INSTALL_PREFIX=/usr -DCONFDIR=/etc -DVERSION_SUFFIX=-b${VERSION_NUMBER_CI}
- make -j$(nproc) package
- rm -rf packages/_CPack_Packages
- ls -alh ${TRAVIS_BUILD_DIR}/build/packages
before_deploy:
- source version.sh
- export PROJECT_VERSION=${ASTROPHOTOPLUS_VERSION}
- sudo apt-get install python3 python3-venv
- wget --quiet "https://raw.githubusercontent.com/GuLinux/GuLinux-Commons/a68a8df028a02ce2730720b9aec8c77f5ada7496/python/travis_release.py"
- md5sum travis_release.py
- python3 -m venv ${TRAVIS_BUILD_DIR}/build/venv
- source ${TRAVIS_BUILD_DIR}/build/venv/bin/activate
- pip3 install PyGithub
deploy:
skip_cleanup: true
provider: script
script: python3 "${TRAVIS_BUILD_DIR}/build/travis_release.py" "${TRAVIS_BUILD_DIR}/build/packages"/*
on:
branch:
- master
- travis_ci
tags: false