-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to circleci for automated build and deployment * execute prompt install and a single prompt command to smoke screen the installation: * macos * ubuntu * fedora 29/30 * debian * centos * mint * update readme to include thank you to circleci and a build status Closes: #23
- Loading branch information
1 parent
8f4096e
commit 0b09959
Showing
22 changed files
with
356 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,140 @@ | ||
version: 2.1 | ||
jobs: | ||
macos: | ||
macos: | ||
xcode: "10.2.1" | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: ./install.sh | tee log.txt | ||
- run: | ||
name: ensure prompt | ||
command: bash -l -c "git sha" | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
ubuntu: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
debian: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
fedora-29: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
fedora-30: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
centos: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
mint: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- setup_remote_docker | ||
- checkout | ||
- run: | ||
name: install and ensure prompt | ||
command: docker build --file docker/$CIRCLE_STAGE/Dockerfile . | tee log.txt | ||
- store_artifacts: | ||
path: log.txt | ||
destination: logs/$CIRCLE_STAGE.txt | ||
|
||
deploy: | ||
docker: | ||
- image: docker:stable | ||
steps: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "a0:dd:b4:96:be:95:30:89:5e:a4:67:57:98:ba:c2:da" | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: release | ||
command: npm run release | ||
|
||
workflows: | ||
install: | ||
jobs: | ||
- macos | ||
- ubuntu | ||
- debian | ||
- fedora-29 | ||
- fedora-30 | ||
- centos | ||
- mint | ||
- deploy: | ||
requires: | ||
- macos | ||
- ubuntu | ||
- debian | ||
- fedora-29 | ||
- fedora-30 | ||
- centos | ||
- mint | ||
filters: | ||
tags: | ||
ignore: | ||
- /.*/ | ||
branches: | ||
only: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.* | ||
.*/ | ||
|
||
artifacts/ | ||
node_modules/ |
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ indent_size = 4 | |
char_set = utf-8 | ||
insert_final_newline = true | ||
|
||
[*.json] | ||
[*.{json,yml,yaml}] | ||
indent_size = 2 |
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 |
---|---|---|
|
@@ -122,4 +122,7 @@ vnd/ | |
Condo.AssemblyInfo.cs | ||
|
||
# prompt backups | ||
backup/ | ||
backup/ | ||
|
||
# circle-ci | ||
!**/.circleci |
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
REPO_DIR=$(dirname "$SCRIPT_DIR") | ||
LOGS_DIR="$REPO_DIR/artifacts/logs" | ||
|
||
PLATFORMS=( "$@" ) | ||
|
||
if [ -z "${PLATFORMS:-}" ]; then | ||
PLATFORMS=($(basename $SCRIPT_DIR/*/)) | ||
fi | ||
|
||
mkdir -p "$LOGS_DIR" 1>/dev/null 2>&1 | ||
|
||
for platform in "${PLATFORMS[@]}"; do | ||
dockerfile="$SCRIPT_DIR/$platform/Dockerfile" | ||
tag="prompt:$platform" | ||
|
||
docker build --file "$dockerfile" --tag $tag "$REPO_DIR" | tee "$LOGS_DIR/$platform.log" | ||
done |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM centos:7 | ||
|
||
RUN yum install -y sudo \ | ||
&& yum clean all \ | ||
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \ | ||
&& useradd -m -s /bin/bash am-prompt \ | ||
&& echo 'am-prompt ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers | ||
|
||
USER am-prompt | ||
WORKDIR /home/am-prompt | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
USER=am-prompt | ||
|
||
COPY . ./ | ||
RUN ./install.sh | ||
|
||
SHELL [ "/bin/bash", "-l" ] | ||
RUN git-sha |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM debian:9 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends sudo locales uuid-runtime \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ | ||
&& dpkg-reconfigure locales \ | ||
&& update-locale LANG=en_US.UTF-8 \ | ||
&& useradd -m -s /bin/bash am-prompt \ | ||
&& echo 'am-prompt ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers | ||
|
||
USER am-prompt | ||
WORKDIR /home/am-prompt/src | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
USER=am-prompt | ||
|
||
COPY . ./ | ||
RUN ./install.sh | ||
|
||
SHELL [ "/bin/bash", "-l" ] | ||
RUN git-sha |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM fedora:29 | ||
|
||
RUN dnf install -y glibc-locale-source sudo util-linux-user \ | ||
&& dnf clean all \ | ||
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \ | ||
&& useradd -m -s /bin/bash am-prompt \ | ||
&& echo 'am-prompt ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers | ||
|
||
USER am-prompt | ||
WORKDIR /home/am-prompt | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
USER=am-prompt | ||
|
||
COPY . ./ | ||
RUN ./install.sh | ||
|
||
SHELL [ "/bin/bash", "-l" ] | ||
RUN git-sha |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM fedora:30 | ||
|
||
RUN dnf install -y glibc-locale-source sudo util-linux-user libxcrypt-compat \ | ||
&& dnf clean all \ | ||
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \ | ||
&& useradd -m -s /bin/bash am-prompt \ | ||
&& echo 'am-prompt ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers | ||
|
||
USER am-prompt | ||
WORKDIR /home/am-prompt | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
USER=am-prompt | ||
|
||
COPY . ./ | ||
RUN ./install.sh | ||
|
||
SHELL [ "/bin/bash", "-l" ] | ||
RUN git-sha |
Oops, something went wrong.