Skip to content

Commit

Permalink
chore: more travis env
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Aug 3, 2020
1 parent 2bac2dc commit ae2ca48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ language: rust
jobs:
include:
- env:
OSCAR_NAME="oscar-$TARGET"
OSCAR_NAME=oscar-x86_64-unknown-linux-gnu
TARGET=x86_64-unknown-linux-gnu
os: linux
- env:
OSCAR_NAME="oscar-$TARGET"
OSCAR_NAME=oscar-x86_64-unknown-linux-musl
TARGET=x86_64-unknown-linux-musl
os: linux
addons:
apt:
packages:
- musl-tools
- env:
OSCAR_NAME="oscar-$TARGET"
OSCAR_NAME=oscar-arm-unknown-linux-gnueabihf
TARGET=arm-unknown-linux-gnueabihf
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
os: linux
- env:
OSCAR_NAME="oscar-$TARGET"
OSCAR_NAME=oscar-aarch64-unknown-linux-gnu
TARGET=aarch64-unknown-linux-gnu
os: linux
arch: arm64
- env:
OSCAR_NAME="oscar-$TARGET"
OSCAR_NAME=oscar-x86_64-apple-darwin
TARGET=x86_64-apple-darwin
os: osx
- env:
OSCAR_NAME="oscar.exe"
OSCAR_NAME=oscar-x86_64-pc-windows-gnu.exe
TARGET=x86_64-pc-windows-gnu
os: windows

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oscar"
version = "0.1.17"
version = "0.1.18"
authors = ["Adam Simpson <adam@heysparkbox.com>"]
edition = "2018"
description = "A CLI application to download videos from PBS. Ideally run in cron or another scheduler."
Expand Down
10 changes: 1 addition & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ cargo build --target="${TARGET}" --release

ls -al ./target/"${TARGET}"/release/

if [ "${TARGET}" = "x86_64-pc-windows-gnu" ]
then
mv ./target/"${TARGET}"/release/oscar "${OSCAR_NAME}"
fi

if [ "${TARGET}" != "x86_64-pc-windows-gnu" ]
then
mv ./target/"${TARGET}"/release/oscar "${OSCAR_NAME}"
fi
mv ./target/"${TARGET}"/release/oscar "${OSCAR_NAME}"

ls -al .

0 comments on commit ae2ca48

Please sign in to comment.