This repository has been archived by the owner on Jul 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78a40a4
commit 0ecbc24
Showing
2 changed files
with
16 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/syme | ||
docker: | ||
# Since we include lein in the repo, all we need is a JDK. | ||
- image: openjdk:8 | ||
|
@@ -12,8 +11,6 @@ jobs: | |
POSTGRES_USER: root | ||
POSTGRES_DB: syme | ||
environment: | ||
# Suppress warnings by setting LEIN_ROOT. | ||
LEIN_ROOT=nbd | ||
DATABASE_URL=postgres://localhost/syme | ||
steps: | ||
- checkout | ||
|
@@ -29,14 +26,4 @@ jobs: | |
# Migrate the DB, then test. | ||
- run: bin/lein do run -m syme.db, test | ||
# Push it out to Heroku on a successful master build. | ||
- add_ssh_keys | ||
- deploy: | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
# Install Heroku SSH server fingerprint. | ||
mkdir -p ~/.ssh | ||
echo 'heroku.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu8erSx6jh+8ztsfHwkNeFr/SZaSOcvoa8AyMpaerGIPZDB2TKNgNkMSYTLYGDK2ivsqXopo2W7dpQRBIVF80q9mNXy5tbt1WE04gbOBB26Wn2hF4bk3Tu+BNMFbvMjPbkVlC2hcFuQJdH4T2i/dtauyTpJbD/6ExHR9XYVhdhdMs0JsjP/Q5FNoWh2ff9YbZVpDQSTPvusUp4liLjPfa/i0t+2LpNCeWy8Y+V9gUlDWiyYwrfMVI0UwNCZZKHs1Unpc11/4HLitQRtvuk0Ot5qwwBxbmtvCDKZvj1aFBid71/mYdGRPYZMIxq1zgP1acePC1zfTG/lvuQ7d0Pe0kaw==' >> ~/.ssh/known_hosts | ||
git config --global push.default simple | ||
git push -f [email protected]:syme.git | ||
fi | ||
- run: git push https://heroku:[email protected]/syme-staging.git master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters