File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ we will see that it looked for files in the current directory:
107107
108108 Already exists: ./deltat.data
109109 Parsing with: parse_deltat_data()
110- Does not expire til: 2020-06 -01
110+ Does not expire til: 2020-09 -01
111111 Already exists: ./deltat.preds
112112 Parsing with: parse_deltat_preds()
113113 Does not expire til: 2021-01-01
Original file line number Diff line number Diff line change 11#! /bin/bash
2-
3- cd " $( dirname " ${BASH_SOURCE[0]} " ) "
2+ #
3+ # This script should not change directory, because CI strategically runs
4+ # it from somewhere besides the repository root to prevent Skyfield from
5+ # being imported directly from its source tree.
46
57set -e
68if ! command -v assay > /dev/null
1517 exit 2
1618fi
1719if python --version | grep -q ' Python 2.7'
18- then pyflakes skyfield/* .py
20+ then
21+ d=$( python -c ' import skyfield as s; print(s.__file__.rsplit("/", 1)[0])' )
22+ pyflakes " $d " /skyfield/* .py
1923fi
2024exec assay --batch skyfield/tests
Original file line number Diff line number Diff line change 22
33set -e
44cd " $( dirname ${BASH_SOURCE[0]} ) "
5+
6+ # Copy in files that would otherwise need to download.
57cp ci/* skyfield/documentation
68
79function cleanup {
@@ -11,3 +13,7 @@ function cleanup {
1113trap cleanup EXIT
1214
1315make -C skyfield/documentation doctest
16+
17+ # Remove the files we copied in.
18+ FILES=" $( cd ci; ls * .* ) "
19+ (cd skyfield/documentation; rm $FILES )
You can’t perform that action at this time.
0 commit comments