-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (50 loc) · 2.04 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
sudo: required
dist: trusty
services:
- docker
language: generic
env:
global:
- BINNAME="shaderlabs"
- TAR_FILE_NAME="$BINNAME-$TRAVIS_OS_NAME-$TRAVIS_COMMIT.tar.gz"
- BUCKETPATH="travisci/shader-labs/$TRAVIS_OS_NAME"
- VER=`expr match "$TRAVIS_TAG" '.*\([0-9]\.[0-9]\.[0-9]\)'`
- PACK_FILE_NAME="${BINNAME}_${VER}.deb"
jobs:
include:
- stage: build
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- ./build_with_docker.sh
before_script:
- cd output && tar -xzf output.tar.gz && cd ..
script:
- ./output/bin/shaderlabs -v
after_success:
- cp ./output/output.tar.gz ./$TAR_FILE_NAME
- if [[ ! -z "$VER" ]]; then ./pack.sh; fi
- rm -rf output
addons:
artifacts:
target_paths:
- /$BUCKETPATH
- stage: deploy
install: skip
script: skip
before_deploy:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update -q
- wget "https://s3.amazonaws.com/$ARTIFACTS_BUCKET/$BUCKETPATH/$PACK_FILE_NAME"
- sudo dpkg -i ./$PACK_FILE_NAME || sudo apt-get install -fy
- shaderlabs -v
deploy:
provider: releases
api_key:
secure: lGP3gN+xarNpVa2pmLFBgurSrT6YFfphlZR5Nd7YJi93/ZqVHCdPbm6guzXvQkhtQGf6G5UeVHDFUpvfMT4Yx+K6Yqb3KyilkZ2PZFWQ38fZe2dgaBF1gz7o5XARVufLM1447GpN8a8f9YsJ8Xp+ODRNsoJob6GD3JegKmR3rBuzTVJUWLFASTYKBI7rdMSN7Q6uPbFXofYKdO7yWP6uQV97XA+wLc+lFZHvqD0GA/1+TI03nZSBTBtXnbA7gtquC4pki+1RNeyJVtirhgfg1myx+g9q3a/rtIpQwbgsqRLN7XFGWNS8dddhNb3aJ9oiBa/Cgh/ZrVZTGl9caX9GeydIJ208ZzjCOWXw0PguiylV81aIP7IySAkzT4EcWTB1KEFhaSNTQD7DWIty7MD/1ok++84rlYokYmKXiDWgWWbn/A/8fq+asiZVkigb4QUjE+zEnj8V2xfsI/vevJSA4FPewMgdc7/j0r/jnbGND4QTbpE9w4nKx0U8PWB7MTIOixwmMFnZkQQx87KArMqgl7oAgYCBNBiL9mkbKZXGZniDCwtebVsF77XVhbh4iTEEXs1XQM4AsCmfNYER4iBfe0Np0SJminL3g1K/y8yjeMP/sMVpeJi8daaM9iws+Mauz7a5nTGUXaH2Lc3/0kW4cv3hi0ZUW3gAx//5ZvVgYgY=
file: $PACK_FILE_NAME
skip_cleanup: true
on:
tags: true