-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
35 lines (32 loc) · 1.26 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
machine:
timezone:
Europe/London
ruby:
version: 2.3.1
pre:
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
dependencies:
pre:
- sudo rm -rf /var/lib/apt/lists/*
- sudo apt-add-repository -y 'deb http://ppa.launchpad.net/ondrej/mysql-experimental/ubuntu precise main'
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C
- sudo apt-get update ; true
- DEBIAN_FRONTEND=noninteractive sudo apt-get install -y mysql-server-5.6
post:
- bin/bundle-audit update
- bin/bundle-audit
database:
override:
- cp config/database.yml.ci config/database.yml
- RACK_ENV=test RAILS_ENV=test bin/rails db:create db:schema:load --trace
- RACK_ENV=acceptance RAILS_ENV=acceptance bin/rails db:create db:schema:load --trace
test:
override:
- bin/rails test:unit_and_functional
- bin/rails stronghold:test_coverage_percent
- RUBYOPT=W0 RACK_ENV=acceptance RAILS_ENV=acceptance bin/rails test:acceptance
- bin/rails stronghold:security_analysis
- bin/rails stronghold:ssl_quality_check
- git config --global user.email "[email protected]"
- git config --global user.name "Circle"
- bin/rails stronghold:code_quality_analysis