forked from jahnf/Projecteur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 3.26 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
language: cpp
matrix:
include:
- os: linux
dist: xenial
env: DOCKER_IMG=jahnf/projecteur:debian-stretch
- os: linux
dist: xenial
env: DOCKER_IMG=jahnf/projecteur:ubuntu-16.04
- os: linux
dist: xenial
env:
- DOCKER_IMG=jahnf/projecteur:ubuntu-18.04
- BUILD_SOURCE_PKG=1
- os: linux
dist: xenial
env: DOCKER_IMG=jahnf/projecteur:opensuse-15.0
- os: linux
dist: xenial
env: DOCKER_IMG=jahnf/projecteur:opensuse-42.3
script:
- git fetch --tags
- "[ -f $(git rev-parse --git-dir)/shallow ] && git fetch --unshallow || echo No need to unshallow..."
- docker pull ${DOCKER_IMG}
- docker run --name build --env TRAVIS_BRANCH=${TRAVIS_BRANCH} -d -v `pwd`:/source:ro -ti ${DOCKER_IMG}
- docker exec -it build /bin/bash -c "mkdir -p /build/dist-pkg && cd /build && cmake /source"
- docker exec -it build /bin/bash -c "cd /build && cmake --build ."
- docker exec -it build /bin/bash -c "cd /build && cmake --build . --target dist-package"
- docker exec -it build /bin/bash -c "cd /build && ./projecteur --version"
- docker exec -it build /bin/bash -c "mv /build/*.deb /build/dist-pkg || true"
- docker exec -it build /bin/bash -c "mv /build/*.rpm /build/dist-pkg || true"
- docker exec -it build /bin/bash -c "mv /build/*.tgz /build/dist-pkg || true"
- docker exec -it build /bin/bash -c "mv /build/*.tar.gz /build/dist-pkg || true"
- "[ \"${BUILD_SOURCE_PKG}\" = 1 ] && docker exec -it build /bin/bash -c \"cd /build && cmake --build . --target source-archive\" || true"
- "[ \"${BUILD_SOURCE_PKG}\" = 1 ] && docker exec -it build /bin/bash -c \"mv /build/archive_output/* /build/dist-pkg\" || true"
- docker cp build:/build/dist-pkg .
- docker cp build:/build/travis-ci-bintray-deploy.json .
- ls -alh dist-pkg
deploy:
provider: bintray
skip_cleanup: true
on:
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^develop|master$"
file: travis-ci-bintray-deploy.json
user:
secure: IiLPERfNp3JOj4kLgAaHFWNhYh8ZEMNwbnToo+eg69QsdKOq4gDyPjVA2pjqNjxkHVC8mP846c4RMdx7B3d78cejS+nN8NgwRkGky6pe15ZW6eZ2Ncn4aIaZ35+yL/VIDei+laJv/LWehYypw5qK8hj3kL22VwwzbenMUHUdL6InmB4dVUFnr16BvdNLDPlulgAmeDxgOMYIieiiIPXpQlkHQfZhu9XyFECOunwPRUtipZ0HOck2Q8kJuXeD8Wg0iVVIJbWmXq2BFVexnDMyxvz0WNL2ExK+Nd2wjkccQqQNO2TZVKdW1vt96lataHjfruacWwtFQ95CNLsSJXmmDaTbF6+qG5vKWAPwqe3+kvgyqbYQFt7hAK0YgUHHHgYpZzpQ4EsrvHdld/SACRIr94jX0262FPPb/d7rmCBrmECBHSqKnz+KkIbzdTS/dW5gk+EuInZhef9yfibBjxFHTX7NpCSzrm/jOgQHTnBEoBTzSgeqw1sxdKZ1oPgOmm6FpxvF83B/kfgf1++er4b04BL8tberEgXnTqWQoZNUjhCq8Sx1LIQnT0ySemY1JsnmJMHD79jHSg0wv30EFPhD/TeRoGbbKc+P9ZU+3qle+EAwT33ey34JlRgO9RqHDm2m4jW8snfPgUKWIQazAvwUuilae7VPYPWMMu4a+PR9mjc=
key:
secure: Qggdx4BL+0iB+lU8maLQw1VzGS/015rdUFeIobTje8P+kEmVkSXAA4IS48zX0Ls0JjotzwYjZyzs+lAk7RYYlj0RMexodPXaiMgN01RygKtpg3g4ZFlDgnWB/gK7dhGhjEryUq4K1mMBJBAu5rO7JUqbpWB2hX8TpwuE1IPuE3vEylGCBbfJn8IBDDJ+1qG1pMMSOvCvg4exBVsYdCUHWnQRYHo+luw9G+jqNB0NHp4ASIYcdGwULej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