2018-01-24 20:49:56 +01:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
macos:
|
2018-07-10 13:52:57 +02:00
|
|
|
xcode: "9.4.1"
|
2018-01-24 20:49:56 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-01-19 02:19:22 +01:00
|
|
|
- run:
|
2018-03-13 00:46:59 +01:00
|
|
|
name: setup script
|
|
|
|
command: ./script/setup/osx
|
2018-01-24 20:49:56 +01:00
|
|
|
- run:
|
|
|
|
name: install tox
|
|
|
|
command: sudo pip install --upgrade tox==2.1.1
|
|
|
|
- run:
|
|
|
|
name: unit tests
|
2018-01-19 02:19:22 +01:00
|
|
|
command: tox -e py27,py36 -- tests/unit
|
2018-01-24 20:49:56 +01:00
|
|
|
|
|
|
|
build-osx-binary:
|
|
|
|
macos:
|
2018-07-10 13:52:57 +02:00
|
|
|
xcode: "9.4.1"
|
2018-01-24 20:49:56 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: upgrade python tools
|
|
|
|
command: sudo pip install --upgrade pip virtualenv
|
|
|
|
- run:
|
|
|
|
name: setup script
|
2018-07-10 13:52:57 +02:00
|
|
|
command: DEPLOYMENT_TARGET=10.11 ./script/setup/osx
|
2018-01-24 20:49:56 +01:00
|
|
|
- run:
|
|
|
|
name: build script
|
|
|
|
command: ./script/build/osx
|
|
|
|
- store_artifacts:
|
|
|
|
path: dist/docker-compose-Darwin-x86_64
|
|
|
|
destination: docker-compose-Darwin-x86_64
|
2018-07-10 13:52:57 +02:00
|
|
|
- deploy:
|
|
|
|
name: Deploy binary to bintray
|
|
|
|
command: |
|
|
|
|
OS_NAME=Darwin PKG_NAME=osx ./script/circle/bintray-deploy.sh
|
2018-01-24 20:49:56 +01:00
|
|
|
|
|
|
|
build-linux-binary:
|
|
|
|
machine:
|
|
|
|
enabled: true
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: build Linux binary
|
|
|
|
command: ./script/build/linux
|
|
|
|
- store_artifacts:
|
|
|
|
path: dist/docker-compose-Linux-x86_64
|
|
|
|
destination: docker-compose-Linux-x86_64
|
|
|
|
- deploy:
|
|
|
|
name: Deploy binary to bintray
|
|
|
|
command: |
|
|
|
|
OS_NAME=Linux PKG_NAME=linux ./script/circle/bintray-deploy.sh
|
2018-01-26 02:50:20 +01:00
|
|
|
|
|
|
|
|
2018-01-24 20:49:56 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
all:
|
|
|
|
jobs:
|
|
|
|
- test
|
|
|
|
- build-linux-binary
|
|
|
|
- build-osx-binary
|