-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from Semaphore CI to CircleCI
- Loading branch information
Showing
7 changed files
with
126 additions
and
72 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,44 @@ | ||
version: 2 | ||
shared: &shared | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
steps: | ||
- checkout | ||
# This command will pick up $VERSION from the environment. | ||
- run: >- | ||
make docker | ||
CMD="make -k compile checkdoc longlines" | ||
jobs: | ||
emacs-25.1: | ||
<<: *shared | ||
environment: | ||
VERSION: "25.1" | ||
emacs-25.2: | ||
<<: *shared | ||
environment: | ||
VERSION: "25.2" | ||
emacs-25.3: | ||
<<: *shared | ||
environment: | ||
VERSION: "25.3" | ||
emacs-26.1: | ||
<<: *shared | ||
environment: | ||
VERSION: "26.1" | ||
emacs-26.2: | ||
<<: *shared | ||
environment: | ||
VERSION: "26.2" | ||
emacs-master: | ||
<<: *shared | ||
environment: | ||
VERSION: "master" | ||
workflows: | ||
version: 2 | ||
ci: | ||
jobs: | ||
- emacs-25.2 | ||
- emacs-25.3 | ||
- emacs-26.1 | ||
- emacs-26.2 | ||
- emacs-master |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
ARG VERSION | ||
FROM silex/emacs:$VERSION | ||
|
||
ARG UID | ||
|
||
COPY scripts/docker-install.bash /tmp/ | ||
RUN /tmp/docker-install.bash "$UID" | ||
|
||
USER $UID | ||
WORKDIR /home/docker/src | ||
|
||
CMD bash |
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,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
if (( $# != 1 )); then | ||
echo "usage: docker-install.bash UID" >&2 | ||
exit 1 | ||
fi | ||
|
||
uid="$1" | ||
|
||
packages=" | ||
# needed to run build system | ||
make | ||
# needed for 'make help' | ||
bsdmainutils | ||
# for checking diffs if you want | ||
git | ||
# just in case we want root | ||
sudo | ||
" | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update | ||
apt-get install -y $(grep -v "^#" <<< "$packages") | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
useradd --uid="$uid" --create-home --groups sudo docker | ||
passwd -d docker | ||
|
||
rm "$0" |
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