forked from icio/step-s3sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
51 lines (41 loc) · 1.32 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
box: debian:stable-slim
build:
steps:
- shellcheck:
files: run.sh
- script:
name: set version
code: |
export S3CMD_VERSION="1.6.1"
echo "Installing version $S3CMD_VERSION of s3cmd"
- install-packages:
packages: curl python-pip
- script:
name: install pyinstaller
code: |
sudo pip install python-dateutil
sudo pip install pyinstaller==3.1
- script:
name: download s3cmd
code: |
curl -L /~https://github.com/s3tools/s3cmd/archive/v$S3CMD_VERSION.tar.gz > /tmp/s3cmd.tar.gz
mkdir /tmp/s3cmd/
tar xzvf /tmp/s3cmd.tar.gz -C /tmp/s3cmd/
- script:
name: pyinstaller
code: |
cd /tmp/s3cmd
pyinstaller -F --name=s3cmd /tmp/s3cmd/s3cmd-$S3CMD_VERSION/s3cmd
- script:
name: prepare output
code: |
mv /tmp/s3cmd/dist/s3cmd $WERCKER_ROOT/s3cmd
rm -rf $WERCKER_ROOT/.git
rm -f $WERCKER_ROOT/.gitignore
- script:
name: version
code: $WERCKER_ROOT/s3cmd --version
publish:
steps:
- internal/publish-step:
owner: wercker