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

chore(circleci): upgrade circleci config file

* Upgrade circleci config file to v2.0 format
* See https://circleci.com/docs/2.0/migration/
This commit is contained in:
naxuroqa 2019-01-22 16:36:44 +01:00 committed by sudden6
parent 50f53db113
commit b355ef4737
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 48 additions and 34 deletions

48
.circleci/config.yml Normal file
View File

@ -0,0 +1,48 @@
---
version: 2.1
jobs:
build:
machine: true
steps:
- run:
name : Export env
command: |
echo 'export MAKEFLAGS="j4"' >> $BASH_ENV
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
- run:
name: Build stage 1
command: |
docker info
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage1
- run:
name: Build stage 2
command: |
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage2
ls -al ~/cache
- run:
name: Build stage 3
command: |
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage3
ls -al ~/
ls -al ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/
ls -al ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe
- run:
name: Zip artifacts
command: |
cd ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/
zip -r qtox_"$BUILD__"_"$BTYPE__".zip *
- store_artifacts:
path: ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe
- store_artifacts:
path: ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox_"$BUILD__"_"$BTYPE__".zip
workflows:
version: 2
build:
jobs:
- build

View File

@ -1,34 +0,0 @@
machine:
services:
- docker
timezone:
Europe/Berlin
environment:
MAKEFLAGS: "j4"
BUILD__: "x86_64"
BTYPE__: "release"
dependencies:
cache_directories:
- "~/cache"
pre:
- sudo apt-get update
- sudo apt-get install zip
- docker info
- ./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage1
- ./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage2
- ls -al ~/cache
compile:
override:
- ./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage3
- ls -al ~/
- ls -al /home/ubuntu/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/
- ls -al /home/ubuntu/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe
- mkdir -p $CIRCLE_ARTIFACTS/"$BUILD__"/
- cp -av /home/ubuntu/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe $CIRCLE_ARTIFACTS/"$BUILD__"/qtox_"$BTYPE__".exe
- cd /home/ubuntu/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/ ; zip -r $CIRCLE_ARTIFACTS/"$BUILD__"/qtox_"$BUILD__"_"$BTYPE__".zip *
- echo "Download Artifacts for this PR at https://circleci.com/api/v1/project/qTox/qTox/latest/artifacts/0/\$CIRCLE_ARTIFACTS/x86_64/qtox_x86_64_release.zip?filter=completed&branch=$CIRCLE_BRANCH"
test:
override:
- "true"