Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit e6e823d

Browse files
committed
Update scripts for Linux
Fix release folder Fix docker line Fix dir status Fix paths for build-linux script
1 parent 2643312 commit e6e823d

File tree

5 files changed

+45
-24
lines changed

5 files changed

+45
-24
lines changed

.travis.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
11
language: python
22
sudo: true
3+
os:
4+
- linux
5+
- osx
36
python:
47
- "2.7"
58
services:
69
- docker
710
install:
8-
- pip install --upgrade pip
9-
- pip install -r requirements.txt
10-
- pip install -r test_requirements.txt
11-
12-
script:
13-
- virtualenv virt64
14-
- source virt64/bin/activate
11+
- pip install --upgrade pip
1512
- pip install -r requirements.txt
16-
- pip install -q pyinstaller==3.1
17-
- pip install -q setuptools==19.2
18-
- pip install -q cryptography
19-
- pyinstaller -D -F .travis/openbazaard.linux64.spec
20-
- "docker run -i -v \"${PWD}:/OpenBazaar\" toopher/ubuntu-i386:14.04 /bin/bash -c \"linux32 --32bit i386 /OpenBazaar/build.sh\""
21-
- sudo bash build-win.sh
22-
- sudo bash build-win64.sh
23-
- sudo chmod 777 dist/openbazaard-linux32
24-
- sudo chmod a+x dist/openbazaard-linux32
25-
- sudo chmod a+x dist/openbazaard-linux64
26-
- sudo chmod 777 dist/openbazaard.exe
13+
- pip install -r test_requirements.txt
14+
script:
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash travis-linux.sh; fi
2716
after_success:
28-
- coveralls
17+
- coveralls
18+
before_deploy:
19+
- export RELEASE_PKG_FILE=$(ls dist/openbazaard*)
2920
deploy:
3021
provider: releases
3122
api_key: "$GITHUB_TOKEN"
23+
file_glob: true
3224
file:
33-
- "dist/openbazaard-linux32"
34-
- "dist/openbazaard-linux64"
35-
- "dist/openbazaard.exe"
25+
- "${RELEASE_PKG_FILE}"
3626
- "ob.cfg"
3727
skip_cleanup: true
3828
on:

build.sh renamed to build-linux32.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ mkdir dist
77

88
# case "$TRAVIS_OS_NAME" in
99
# "linux")
10-
11-
1210
cd OpenBazaar/
1311

1412
echo "Building Linux Binaries...."

build-linux64.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
virtualenv virt64
4+
source virt64/bin/activate
5+
pip install -r requirements.txt
6+
pip install -q pyinstaller==3.1
7+
pip install -q setuptools==19.2
8+
pip install -q cryptography
9+
pyinstaller -D -F .travis/openbazaard.linux64.spec

travis-linux.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
sudo bash build-linux64.sh
4+
sudo docker run -i -v "${PWD}:/OpenBazaar" toopher/ubuntu-i386:14.04 /bin/bash -c "linux32 --32bit i386 /OpenBazaar/build-linux32.sh"
5+
sudo bash build-win.sh
6+
sudo bash build-win64.sh
7+
sudo chmod 777 dist/openbazaard-linux32
8+
sudo chmod a+x dist/openbazaard-linux32
9+
sudo chmod 777 dist/openbazaard-linux64
10+
sudo chmod a+x dist/openbazaard-linux64
11+
ls -alg dist/openbazaard-linux64
12+
sudo chmod 777 dist/openbazaard.exe

travis-linux.sh~

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
sudo bash build-linux64.sh
4+
docker run -i -v "${PWD}:/OpenBazaar" toopher/ubuntu-i386:14.04 /bin/bash -c "linux32 --32bit i386 /OpenBazaar/build-linux32.sh"
5+
sudo bash build-win.sh
6+
sudo bash build-win64.sh
7+
sudo chmod 777 dist/openbazaard-linux32
8+
sudo chmod a+x dist/openbazaard-linux32
9+
sudo chmod 777 dist/openbazaard-linux64
10+
sudo chmod a+x dist/openbazaard-linux64
11+
ls -alg dist/openbazaard-linux64
12+
sudo chmod 777 dist/openbazaard.exe

0 commit comments

Comments
 (0)