Skip to content

Commit 31850c6

Browse files
author
y-p
committed
BLD: make scatter_ci after_script.sh standalone
1 parent 1182347 commit 31850c6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,4 @@ script:
7070
after_script:
7171
- ci/print_versions.py
7272
- ci/print_skipped.py /tmp/nosetests.xml
73-
- ci/print_versions.py -j /tmp/env.json
7473
- ci/after_script.sh

ci/after_script.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@
22

33
wget https://raw.github.com/y-p/ScatterCI-CLI/master/scatter_cli.py
44
chmod u+x scatter_cli.py
5-
echo '' > /tmp/build.log
5+
66
pip install -I requests==2.1.0
77
echo "${TRAVIS_PYTHON_VERSION:0:4}"
88
if [ x"${TRAVIS_PYTHON_VERSION:0:4}" == x"2.6" ]; then
99
pip install simplejson;
1010
fi
1111

12+
# ScatterCI accepts a build log, but currently does nothing with it.
13+
echo '' > /tmp/build.log
14+
15+
# These should be in the environment, but not in source control
16+
# nore exposed in the build logs
17+
#export SCATTERCI_ACCESS_KEY=
18+
#export SCATTERCI_HOST=
19+
20+
# Generate a json file describing system and dep versions
21+
ci/print_versions.py -j /tmp/env.json
22+
23+
# nose ran using "--with-xunit --xunit-file nosetest.xml" and generated /tmp/nosetest.xml
24+
# Will timeout if server not available, and should not fail the build
1225
python scatter_cli.py --xunit-file /tmp/nosetests.xml --log-file /tmp/build.log --env-file /tmp/env.json --succeed
1326

1427
true # never fail because bad things happened here

0 commit comments

Comments
 (0)