summaryrefslogtreecommitdiff
path: root/.circleci/config.yml
blob: 08f8c42c39f1d5b6f680ca9806299137143269be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: 2
jobs:
  test:
    macos:
      xcode: "9.4.1"
    steps:
    - checkout
    - run:
        name: setup script
        command: ./script/setup/osx
    - run:
        name: install tox
        command: sudo pip install --upgrade tox==2.1.1 virtualenv==16.2.0
    - run:
        name: unit tests
        command: tox -e py27,py36,py37 -- tests/unit

  build-osx-binary:
    macos:
      xcode: "9.4.1"
    steps:
      - checkout
      - run:
          name: upgrade python tools
          command: sudo pip install --upgrade pip virtualenv==16.2.0
      - run:
         name: setup script
         command: DEPLOYMENT_TARGET=10.11 ./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


workflows:
  version: 2
  all:
    jobs:
      - test
      - build-linux-binary
      - build-osx-binary