This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
circle.yml
54 lines (54 loc) · 1.5 KB
/
circle.yml
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
---
machine:
php:
version: 7.1.9 # https://circleci.com/docs/1.0/build-image-trusty/#php
services:
- docker
checkout:
post:
- git submodule sync
- git submodule update --init
dependencies:
cache_directories:
- ~/.composer/cache
override:
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe"
- sudo apt-get update -qq
- sudo apt-get install shellcheck
- composer validate
- composer install
test:
override:
- shellcheck provisioning/beetbox.sh
- composer security
- phpunit
- vendor/bin/robo provision ubuntu:16.04 beet_test
deployment:
dev:
branch: master
owner: beetboxvm
commands:
- >
docker run -i -v $(pwd):/beetbox -i beet_test
packer push
-token=$ATLAS_TOKEN
-name="beet/dev"
-var "cloud_token=$VAGRANT_CLOUD_TOKEN"
-var "beet_repo=$CIRCLE_REPOSITORY_URL.git"
-var "box_version=0.8.$CIRCLE_BUILD_NUM"
/beetbox/provisioning/ubuntu-16.04.json
release:
tag: /[0-9]+\.[0-9]+\.[0-9]+/
owner: beetboxvm
commands:
- >
docker run -i -v $(pwd):/beetbox -i beet_test
packer push
-token=$ATLAS_TOKEN
-name="beet/box"
-var "cloud_build_name=box"
-var "cloud_token=$VAGRANT_CLOUD_TOKEN"
-var "beet_repo=$CIRCLE_REPOSITORY_URL.git"
-var "beet_version=$CIRCLE_TAG"
-var "box_version=$CIRCLE_TAG"
/beetbox/provisioning/ubuntu-16.04.json