Linux + OSX pipeline

This commit is contained in:
Wiktor Mazur
2020-01-15 23:31:51 +01:00
parent 057cda91ab
commit b6ed25d587
+29 -7
View File
@@ -1,20 +1,42 @@
language: rust language: rust
rust: rust:
- nightly - nightly
jobs:
include:
- os: linux
script: script:
- cd backend - sudo apt-get install python3-venv
- cargo test -- --test-threads 1 - python3 -m venv env
- cargo build --release --verbose - . env/bin/activate
- cd .. - pip install -v -r frontend/requirements.txt
- pyinstaller -F -w -i assets/albion-stats-icon.ico --add-data frontend/src/assets:src/assets frontend/albion-online-stats.py
- deactivate
before_deploy: before_deploy:
- tar cvf albion-stats.tar --exclude='gui/src/__pycache__' frontend backend/target/release/liblibaostats.so - cp dist/albion-online-stats albion-online-stats-linux
deploy: deploy:
provider: releases provider: releases
api_key: api_key:
secure: $GITHUB_TOKEN secure: $GITHUB_TOKEN
file: file:
- "albion-stats.tar" - albion-online-stats-linux
skip_cleanup: true
on:
tags: true
- os: osx
script:
- python3 -m venv env
- . env/bin/activate
- pip install -v -r frontend/requirements.txt
- pyinstaller -F -w -i assets/albion-stats-icon.ico --add-data frontend/src/assets:src/assets frontend/albion-online-stats.py
- deactivate
before_deploy:
- cp dist/albion-online-stats albion-online-stats-osx
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- albion-online-stats-osx
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true