Skip to content

Commit

Permalink
Build with Circle CI.
Browse files Browse the repository at this point in the history
- Needs the same sudo stub as GitLab.
- Some X11 libraries are required for building with the KA10 simulator.
  • Loading branch information
larsbrinkhoff committed Aug 4, 2018
1 parent 9f70f35 commit e99721a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
jobs:
build:
docker:
- image: debian
environment:
EMULATOR: "sims"
steps:
- checkout
- run: sh -ex build/dependencies.sh install_linux
- run:
name: build
command: "make EMULATOR=$EMULATOR"
no_output_timeout: 60m
timeout: 60m
- store_artifacts:
path: out
9 changes: 5 additions & 4 deletions build/dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if test -n "$GITLAB_CI"; then
if test -n "$GITLAB_CI" -o -n "$CIRCLECI"; then
sudo() {
"$@"
}
Expand All @@ -9,9 +9,10 @@ install_linux() {
sudo apt-get install -my expect
# For GitLab CI
sudo apt-get install -my git make gcc libncurses-dev autoconf
if test "$EMULATOR" = simh; then
sudo apt-get install -y simh
fi
case "$EMULATOR" in
simh) sudo apt-get install -y simh;;
sims) sudo apt-get install -y libx11-dev libxt-dev;;
esac
}

"$1"

0 comments on commit e99721a

Please sign in to comment.