-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
82 lines (78 loc) · 2.22 KB
/
Copy pathcircle.yml
File metadata and controls
82 lines (78 loc) · 2.22 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
general:
build_dir: todo-app-production
artifacts:
- log/test.log
- tmp/capybara
machine:
environment:
RAILS_ENV: test
RACK_ENV: test
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:${HOME}/.yarn/bin"
YARN_VERSION: 0.19.1
node:
version: 7.4
dependencies:
pre:
# Install Yarn
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Download and install Yarn."
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed."
fi
# Install Google Chrome
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
cache_directories:
- "~/.yarn"
- "~/.cache/yarn"
override:
- yarn
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
post:
- yarn run build:all:rspec:
pwd: client
test:
post:
- $(yarn bin)/jest .*\\.test\\.js:
pwd: client
parallel: true
environment:
NODE_PATH: .:./app:./app/bundles
NODE_ENV: test
JEST_JUNIT_OUTPUT: $CIRCLE_TEST_REPORTS/jest/junit.xml
- $(yarn bin)/eslint --ext .js,.jsx:
pwd: client
parallel: true
files:
- 'app/**/*.js'
- 'app/**/*.jsx'
- 'webpack-helpers/**/*.js'
- 'server-rendering-entry.js'
- 'server.js'
- 'webpack.config.babel.js'
- yarn run flow:
pwd: client
- bundle exec rubocop:
parallel: true
# keep in sync with files in script/lint
files:
- 'app/**/*.rb'
- 'config/**/*.rb'
- 'db/migrate/**/*.rb'
- 'db/seeders/**/*.rb'
- 'db/seeds.rb'
- 'lib/**/*.rb'
- 'lib/**/*.rake'
- 'spec/**/*.rb'
- 'config.ru'
- 'Gemfile'
- 'Rakefile'
- bundle exec scss-lint:
parallel: true
files:
- 'app/assets/styles/**/*.scss'
- 'client/app/**/*.scss'
- bundle exec brakeman
- bundle exec bundle-audit update && bundle exec bundle-audit