forked from Gigoteur/UnicornConsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (50 loc) · 1.9 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
dist: trusty
language: rust
services: docker
sudo: required
rust: stable
env:
global:
- TARGET=x86_64-unknown-linux-gnu
# matrix:
# include:
# - env: TARGET=armv7-unknown-linux-gnueabihf DEPLOY=1
# - env: TARGET=x86_64-unknown-linux-gnu DEPLOY=1
before_install:
- set -e
- export PATH="$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" |
sed "s|::|:|g")"
install:
- sudo apt-get update -q
- sudo apt-get install libsdl2-dev libsdl2-mixer-dev
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB"
addons:
apt:
packages:
- python3
script:
- bash ci/script.sh
before_deploy:
- mkdir PX8
- cp target/release/px8 PX8/
- cp -r sys PX8/
- cp -r examples PX8/
- cp -r games PX8/
- tar -zcvf px8-$TRAVIS_TAG-$TARGET.tar.gz PX8
deploy:
provider: releases
skip_cleanup: true
overwrite: true
api_key:
secure: R42tjaO08EoICVp3+9qD5UgJz3fRydo+B3UJkfp/VGxWilON8tkMmHLxUri+Whgz41WSy7s88BgR2wG/WnY98Lw35fKtQ3WxnVySwoiQixYBUw+LsjMU+9wsqOPICTWTMBG1L6Ad+G0y2EC87qY1pcZxM6/QoHJfoZF+NTI2topZgQMg/0bTlxW674ZR8OiTIwWKkR4LIp0rq8aUiX28LEzkfdYnUCvs3U9mMIeMVLNQsgnoIT8vDTHvYcTN5Yn//O/+k3glOjuCJ4X8gUWrbRfqPajLwT7E6ywXcM9PGb/8RjEIQQlZSafOcxdmPD8HSRKoM6geCVGK2V45IoHRuh1svSmB3UhGDyfBaF6JafC/ViKLBQpFkDqH66fFDMGxYzRfvnW4aWcHeSU5pBJ+39q1eKKaMAWeV4QCLPCfMeq9Fzk6tVdGN9ObRW4oIGkoQTOwHQ+qEI4lw1StyVV5jGedZM6O6Sog61miHu1MZ39bHeGoSVlAZ+u7w5MSN+wBIJwvgCVTeysS7Eu5OeUbmlsHceQceBAOFfoXZWRNykB4ikdoSr5AMva0K+jqx6sVbtMwS3xXoxbzxi0sngjf65ZHoR/qN5FTImCe4l9FqhaxerDXHMuQZ5qxrUErq3+v4Gc9KNJ3GRaBBrQTZwMBV+ijVRJmiYW/ZmFmRyatDF4=
file: px8-$TRAVIS_TAG-$TARGET.tar.gz
on:
condition: $TRAVIS_RUST_VERSION = stable
repo: Gigoteur/PX8
tags: true
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo