-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
54 lines (44 loc) · 1.38 KB
/
wercker.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
box: python:3.5
build:
steps:
- shellcheck:
files: run.sh
- script:
name: set version
code: |
export OCI_CLI_VERSION="2.4.19"
echo "Installing version $OCI_CLI_VERSION of oci CLI"
- script:
name: install pyinstaller
code: |
sudo pip install pyinstaller==3.3.1
- script:
name: install ocicli
code: |
sudo pip install oci-cli==${OCI_CLI_VERSION}
- script:
#use pyinstaller to convert the oci Python script into a standalone executable
#since we can't guarantee that the users of this step will have Python available
#in the box that their build runs in.
name: pyinstaller
code: |
mkdir -p /tmp/ocicli
cp $(which oci) /tmp/ocicli
cd /tmp/ocicli
pyinstaller -F /tmp/ocicli/oci
- script:
name: prepare output
code: |
mv /tmp/ocicli/dist/oci $WERCKER_ROOT/oci
rm -rf $WERCKER_ROOT/.git
rm -f $WERCKER_ROOT/.gitignore
- script:
name: version
code: $WERCKER_ROOT/oci --version
dev:
steps:
- internal/shell
publish:
steps:
- internal/publish-step:
owner: desagar