1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/.circleci/config.yml

108 lines
3.0 KiB
YAML
Raw Normal View History

---
version: 2.1
jobs:
dependencies64:
machine: true
steps:
2019-01-23 04:14:53 +08:00
- checkout
- run:
2019-01-23 04:14:53 +08:00
name : Export environment variables
command: |
echo 'export MAKEFLAGS="j4"' >> $BASH_ENV
echo 'export BUILD__="x86_64"' >> $BASH_ENV
echo 'export BTYPE__="release"' >> $BASH_ENV
2019-01-23 04:14:53 +08:00
docker info
- run:
name: Install zip
command: |
sudo apt-get update
2019-01-23 04:14:53 +08:00
sudo apt-get install zip tree
- restore_cache:
key: dependency-cache-64
2019-01-23 04:14:53 +08:00
paths:
2019-02-26 03:08:54 +08:00
- cache
- run:
name: Build stage 1
command: |
2019-02-26 03:08:54 +08:00
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage1
- run:
name: Build stage 2
command: |
2019-02-26 03:08:54 +08:00
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2
ls -al cache
2019-01-23 04:14:53 +08:00
- save_cache:
key: dependency-cache-64
paths:
- cache
release64:
machine: true
steps:
- checkout
- restore_cache:
key: dependency-cache-64
2019-01-23 04:14:53 +08:00
paths:
2019-02-26 03:08:54 +08:00
- cache
- run:
name : Export environment variables
command: |
echo 'export BUILD__="x86_64"' >> $BASH_ENV
echo 'export BTYPE__="release"' >> $BASH_ENV
- run:
name: Install zip
command: |
sudo apt-get update
sudo apt-get install zip tree
- run:
name: Build stage 3
command: |
2019-02-26 03:08:54 +08:00
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage3
- run:
2019-01-23 04:14:53 +08:00
name: Debug info
command: |
2019-01-23 04:14:53 +08:00
ls -al ~/
tree ~/project/workspace -L 4
- store_artifacts:
2019-01-23 04:14:53 +08:00
path: "/home/circleci/project/workspace/x86_64/qtox/release/qtox-x86_64-release.zip"
- store_artifacts:
2019-01-23 04:14:53 +08:00
path: "/home/circleci/project/workspace/x86_64/qtox/release/setup-qtox-x86_64-release.exe"
debug64:
machine: true
steps:
- checkout
- restore_cache:
key: dependency-cache-64
paths:
- cache
- run:
name : Export environment variables
command: |
echo 'export BUILD__="x86_64"' >> $BASH_ENV
echo 'export BTYPE__="debug"' >> $BASH_ENV
- run:
name: Install zip
command: |
sudo apt-get update
sudo apt-get install zip tree
- run:
name: Build stage 3
command: |
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage3
- run:
name: Debug info
command: |
ls -al ~/
tree ~/project/workspace -L 4
- store_artifacts:
path: "/home/circleci/project/workspace/x86_64/qtox/debug/qtox-x86_64-debug.zip"
workflows:
version: 2
build:
jobs:
- dependencies64
- release64:
requires:
- dependencies64
- debug64:
requires:
- dependencies64