forked from spacetelescope/jupyterhub-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (67 loc) · 1.92 KB
/
build-test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Image Build, Test
on:
push:
branches:
- main
- test
pull_request:
branches:
- main
- test
jobs:
docker:
name: "${{ matrix.DEPLOYMENT_NAME }} USE_FROZEN=${{ matrix.USE_FROZEN }} -- Image Build, Test"
runs-on: ubuntu-18.04
strategy:
max-parallel: 3
fail-fast: false
matrix:
DEPLOYMENT_NAME: [ jwebbinar, roman, tike]
USE_FROZEN: [ 0, 1, 2 ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Free Disk Space, Enlarge Swapfile
shell: bash
run: |
df -h
sudo apt clean
docker rmi $(docker image ls -aq)
docker container prune -f
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
sudo swapoff -a
sudo rm -f /swapfile
sudo fallocate -l 24G /swapfile
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
cat /proc/meminfo
df -h
- name: Set Up Environment
shell: bash
run: |
tools/image-configure ${{ matrix.DEPLOYMENT_NAME }} ${{ matrix.USE_FROZEN }}
df -h
- name: Image Build
shell: bash
run: |
source setup-env
tools/image-build
df -h
docker system df
docker system prune
docker image ls
df -h
- name: Git Diffs (Frozen Version Specs)
shell: bash
run: git diff
- name: Image Functional Tests
shell: bash
run: |
df -h
source setup-env
tools/image-test
df -h