mirror of
https://github.com/PDP-10/its.git
synced 2026-04-02 20:27:07 +00:00
Build with Circle CI.
- Needs the same sudo stub as GitLab. - Some X11 libraries are required for building with the KA10 simulator.
This commit is contained in:
17
.circleci/config.yml
Normal file
17
.circleci/config.yml
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
if test -n "$GITLAB_CI"; then
|
||||
if test -n "$GITLAB_CI" -o -n "$CIRCLECI"; then
|
||||
sudo() {
|
||||
"$@"
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user