-
Notifications
You must be signed in to change notification settings - Fork 44
/
circle.yml
32 lines (29 loc) · 1.03 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
version: 2
jobs:
build:
docker:
- image: ruby:2.2.3
working_directory: /root/clojure-by-example
steps:
- run: apt-get -q update; apt-get -y install libgmp3-dev aspell-en
- checkout
- run: cp .aspell.en.pws /root/
- restore_cache:
keys:
- projectname-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- run: bundle install --path vendor/bundle
- save_cache:
key: projectname-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run: bundle exec rake spellcheck
- deploy:
name: Deploy to staging
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
git config --global user.email "[email protected]"
git config --global user.name "kimh-machine1"
git remote remove origin
git remote add origin [email protected]:kimh/clojure-by-example.git
bundle exec rake publish COMMIT_MESSAGE_SUFFIX="[ci skip]"
fi