This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
/
wercker.yml
62 lines (61 loc) · 1.8 KB
/
wercker.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
55
56
57
58
59
60
61
62
box: dosomething/ds-docker-php
build:
# The steps that will be executed on build
steps:
- script:
name: Update apt
code: sudo apt-get update
- script:
name: install bcmath
code: sudo apt-get install -y php7.0-bcmath
- script:
name: Install libnotify
code: sudo apt-get -y install libnotify-bin
- script:
name: Install python2
code: sudo apt-get -y install python python-simplejson
- script:
name: update node
code: |-
export DEBIAN_FRONTEND=noninteractive
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install -y nodejs
- script:
name: start mysql
code: sudo service mysql start
- leipert/composer-install@0.9.1
- wercker/bundle-install@1.1.1
- wercker/npm-install
- npm-test
- script:
name: configure test environment
code: |-
cp .env.example .env
php artisan key:generate
- script:
name: phpunit
code: |-
mysql -u homestead -psecret -e "CREATE DATABASE voting_testing;"
vendor/bin/phpunit
rm -rf public/images
- script:
name: build assets
code: |-
gulp --production
deploy:
steps:
- bundle-install
- script:
name: Make all files readable
code: find . -type f -exec chmod 644 {} \;
- script:
name: write private key env var
code: |-
export CAP_PRIVATE_KEY=`mktemp`
echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
- cap
after-steps:
- sherzberg/slack-notify:
subdomain: dosomething
token: $SLACK_TOKEN
channel: $SLACK_ROOM