forked from mojanjz/DICOMautomaton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (50 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: cpp
services:
- docker
before_install:
- df -h .
- free -h
- |
( ( while true ; do sleep 225 ; printf '\n\n' ; free -h ; printf '\n\n' ; done ) &)
./docker/builders/ci/build.sh
- sudo docker ps -a
script:
# Ensure the default run script works correctly.
- ./docker/scripts/ci/Run_Container.sh
# Extract an AppImage from the container.
- ./docker/scripts/ci/Extract_AppImage.sh
# Workaround for CI push action obliterating the entire repository; fill it with the current contents.
- rm -rf ci_artifacts
- mkdir -pv ci_artifacts
- git clone 'https://github.com/hdclark/hdclark.github.io.git' ci_artifacts
- rm -rf ci_artifacts/.git
- "mv DICOMautomaton*AppImage ci_artifacts/"
after_failure:
- free -h
# Notify that the CI run finished.
notifications:
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGhjbGFyayUzQW1hdHJpeC5vcmcvJTIxc3pRZGpKU2xuaVpBVHVWU3FwJTNBbWF0cml4Lm9yZw"
on_success: always # always|never|change
on_failure: always
on_start: never
## Upload the AppImage to GitHub Releases with tag 'continuous'.
##
## Note: deletes and re-creates the 'continuous' tag, which wreaks havoc for mirrors. :(
#after_success:
# - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
# - bash upload.sh artifacts/DICOMautomaton*AppImage
#
#branches:
# except:
# - /^(?i:continuous)$/
# Upload the AppImage to a GitHub page.
deploy:
- provider: pages:git
edge: true
repo: hdclark/hdclark.github.io
target_branch: master
keep_history: false
local_dir: ci_artifacts
cleanup: false