-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
64 lines (61 loc) · 2.61 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: generic
services:
- docker
jobs:
include:
- stage: install
before_install:
- docker build -t h4tr3d/qtcreator-opt .
- docker run -d -t --name qtcreator-opt h4tr3d/qtcreator-opt bash
install:
- docker cp pkgrepository.sh qtcreator-opt:/home/pkguser
- docker cp .gitmodules qtcreator-opt:/home/pkguser
- docker cp pkgkeys qtcreator-opt:/home/pkguser
- docker cp pkgbuild.sh qtcreator-opt:/home/pkguser
- docker cp pkgbuild-prepare.sh qtcreator-opt:/home/pkguser
- docker cp pkgbuild-qtc-prepare.sh qtcreator-opt:/home/pkguser
- docker cp pkgbuild-qtc-build.sh qtcreator-opt:/home/pkguser
- docker cp pkgbuild-qtc-finalize.sh qtcreator-opt:/home/pkguser
- docker exec qtcreator-opt bash pkgrepository.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_TAG}
- stage: common prepare
script:
- docker exec qtcreator-opt bash pkgbuild-prepare.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC prepare
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-prepare.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 1
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 2
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 3
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 4
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 5
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC build stage 6
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-build.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: QtC finalize
script:
- docker exec qtcreator-opt bash pkgbuild-qtc-finalize.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: pugins build
script:
- docker exec qtcreator-opt bash pkgbuild.sh ${TRAVIS_REPO_SLUG} ${TRAVIS_BUILD_ID}
- stage: deploy
before_deploy:
- docker cp qtcreator-opt:/home/pkguser/bin ${TRAVIS_TAG}
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file_glob: true
file: ${TRAVIS_TAG}/*{db,files,gz,xz}
overwrite: true
skip_cleanup: true
on:
branch: master