-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
51 lines (43 loc) · 1.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
50
51
language: rust
services:
- docker
env:
global:
- PROJECT_NAME=roseline
matrix:
include:
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-musl
cache: cargo
- os: linux
rust: stable
env: TARGET=armv7-unknown-linux-gnueabihf
addons:
apt:
packages: *armhf
sudo: false
install:
- cargo install cross || true
script:
- echo -n $DISCORD_TOKEN > bot/discord.token
- cross build --target $TARGET
- cross test --target $TARGET
before_deploy:
- cross build --package roseline_launch --release --target $TARGET
- travis_wait 40 sleep infinity & cross build --package roseline --release --target $TARGET
- cross build --package roseline-web --release --target $TARGET
- zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/roseline roseline.toml target/$TARGET/release/roseline-web target/$TARGET/release/roseline_launch
deploy:
provider: releases
api_key: $GIT_TOKEN
file_glob: true
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}*
# don't delete the artifacts from previous phases
skip_cleanup: true
overwrite: true
# deploy when a new tag is pushed
on:
# channel to use to produce the release artifacts
condition: $TRAVIS_RUST_VERSION = stable
tags: true