mirror of https://github.com/docker/compose.git
93 lines
2.4 KiB
YAML
93 lines
2.4 KiB
YAML
version: 2
|
|
jobs:
|
|
test:
|
|
macos:
|
|
xcode: "8.3.3"
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: install python3
|
|
command: brew update > /dev/null && brew upgrade python
|
|
- run:
|
|
name: install tox
|
|
command: sudo pip install --upgrade tox==2.1.1
|
|
- run:
|
|
name: unit tests
|
|
command: tox -e py27,py36 -- tests/unit
|
|
|
|
build-osx-binary:
|
|
macos:
|
|
xcode: "8.3.3"
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: upgrade python tools
|
|
command: sudo pip install --upgrade pip virtualenv
|
|
- run:
|
|
name: setup script
|
|
command: ./script/setup/osx
|
|
- run:
|
|
name: build script
|
|
command: ./script/build/osx
|
|
- store_artifacts:
|
|
path: dist/docker-compose-Darwin-x86_64
|
|
destination: docker-compose-Darwin-x86_64
|
|
# - deploy:
|
|
# name: Deploy binary to bintray
|
|
# command: |
|
|
# OS_NAME=Darwin PKG_NAME=osx ./script/circle/bintray-deploy.sh
|
|
|
|
|
|
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
|
|
|
|
trigger-osx-binary-deploy:
|
|
# We use a separate repo to build OSX binaries meant for distribution
|
|
# with support for OSSX 10.11 (xcode 7). This job triggers a build on
|
|
# that repo.
|
|
docker:
|
|
- image: alpine:3.6
|
|
|
|
steps:
|
|
- run:
|
|
name: install curl
|
|
command: apk update && apk add curl
|
|
|
|
- run:
|
|
name: API trigger
|
|
command: |
|
|
curl -X POST -H "Content-Type: application/json" -d "{\
|
|
\"build_parameters\": {\
|
|
\"COMPOSE_BRANCH\": \"${CIRCLE_BRANCH}\"\
|
|
}\
|
|
}" https://circleci.com/api/v1.1/project/github/docker/compose-osx-release?circle-token=${OSX_RELEASE_TOKEN} \
|
|
> /dev/null
|
|
|
|
|
|
workflows:
|
|
version: 2
|
|
all:
|
|
jobs:
|
|
- test
|
|
- build-linux-binary
|
|
- build-osx-binary
|
|
- trigger-osx-binary-deploy:
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|
|
- /bump-.*/
|