forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (55 loc) · 1.82 KB
/
ci.yml
File metadata and controls
69 lines (55 loc) · 1.82 KB
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
# Core tests: Provision and bring up various services on devstack
name: CI
on:
push:
branches: [master]
pull_request:
branches:
- '**'
jobs:
run_ci:
runs-on: ${{ matrix.os }}
env:
DEVSTACK_WORKSPACE: /tmp
SHALLOW_CLONE: 1
# Don't report metrics as real usage
DEVSTACK_METRICS_TESTING: ci
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.8' ]
services: [ discovery+lms+forum ,registrar+lms, ecommerce, edx_notes_api, credentials, xqueue]
fail-fast: false # some services can be flaky; let others run to completion even if one fails
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: installations and version upgrades
run: |
docker version
sudo apt-get update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal test"
sudo apt update
sudo apt install docker-ce
docker version
docker-compose --version
- name: set up requirements
run: make requirements
- name: clone
run: make dev.clone.https
- name: pull
run: make dev.pull.${{matrix.services}}
- name: set exit option
run: set -e
- name: provision
run: make dev.provision.${{matrix.services}}
- name: dev.up
run: make dev.up.${{matrix.services}}
- name: dev.check
run: make dev.check.${{matrix.services}}
- name: docs
run: make docs