Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 595be9c

Browse files
committed
POSIX scripts
so they run on Alpine
1 parent 15f3ae7 commit 595be9c

9 files changed

+16
-10
lines changed

.ci/build-docker.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to build several flavours of docker images
44
# which contain Sage.
@@ -12,6 +12,7 @@
1212
# (at your option) any later version.
1313
# http://www.gnu.org/licenses/
1414
# ****************************************************************************
15+
1516
set -ex
1617

1718
[[ -z "$DOCKER_TAG" ]] && DOCKER_TAG=none

.ci/protect-secrets.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script protects all environment variables that start with "SECRET_".
44
# It puts them in a temporary file. The name of the variable contains the path

.ci/pull-gitlab.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to pull the Sage docker images that were
44
# built during the "build" phase to pull all the connected docker daemon

.ci/push-dockerhub.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to push our docker images to
44
# $DOCKER_USER/sagemath* on the Docker Hub.

.ci/push-gitlab.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/bin/bash
2-
set -ex
1+
#!/bin/sh
32

43
# This script gets called from CI to push our docker images to registry
54
# configured in GitLab. (Mostly, so we can pull them again to push them to the
@@ -17,6 +16,8 @@ set -ex
1716
# http://www.gnu.org/licenses/
1817
# ****************************************************************************
1918

19+
set -ex
20+
2021
[[ -z "$DOCKER_TAG" ]] && (echo "Can not push untagged build."; exit 0)
2122
[[ "$DOCKER_TAG" = "master" ]] && DOCKER_TAG=latest
2223

.ci/setup-make-parallelity.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# ****************************************************************************
44
# Copyright (C) 2018 Julian Rüth <[email protected]>
@@ -9,6 +9,7 @@
99
# (at your option) any later version.
1010
# http://www.gnu.org/licenses/
1111
# ****************************************************************************
12+
1213
set -ex
1314

1415
# Determine the number of threads that can run simultaneously on this system

.ci/test-cli.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to run minimal tests on the sagemath image.
44

@@ -13,6 +13,7 @@
1313
# (at your option) any later version.
1414
# http://www.gnu.org/licenses/
1515
# ****************************************************************************
16+
1617
set -exo pipefail
1718

1819
echo "Checking that Sage starts and can calculate 1+1…"

.ci/test-dev.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to run minimal tests on the sagemath-dev image.
44
# This script expects a single argument, the full name of the docker image to
@@ -13,6 +13,7 @@
1313
# (at your option) any later version.
1414
# http://www.gnu.org/licenses/
1515
# ****************************************************************************
16+
1617
set -exo pipefail
1718

1819
IMAGE="$1"

.ci/test-jupyter.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# This script gets called from CI to run minimal tests on the sagemath-jupyter
44
# image.
@@ -14,6 +14,7 @@
1414
# (at your option) any later version.
1515
# http://www.gnu.org/licenses/
1616
# ****************************************************************************
17+
1718
set -ex
1819

1920
docker run --name sage-jupyter -p 8888:8888 -d "$1" "sage -n jupyter --no-browser --ip='*' --port=8888"

0 commit comments

Comments
 (0)