Skip to content

Commit

Permalink
fix(wercker.yml): use shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
pine committed Mar 18, 2018
1 parent afb8cd7 commit df9cc78
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .wercker/build_externals.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -eux

cd externals/libemoji
cmake .
make
10 changes: 10 additions & 0 deletions .wercker/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -eux

git submodule update --init --recursive

/usr/local/python-3.5/bin/python -m pip install -r requirements-dev.txt
/usr/local/python-3.6/bin/python -m pip install -r requirements-dev.txt

gem install gemfury --no-document
18 changes: 6 additions & 12 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@ build:
box: emojigen/docker-pyemoji
steps:
- install-packages:
packages: git cmake g++ python libfontconfig1-dev libx11-dev libxcomposite-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev ruby
packages: ruby
- script:
name: setup git submodule
name: install dependencies
code: |
git submodule update --init --recursive
./.wercker/install.sh
- script:
name: build externals
code: |
cd externals/libemoji
cmake .
make
- script:
name: install dependencies
code: |
python3 -m pip install -r requirements-dev.txt
gem install gemfury --no-document
./.wercker/build_externals.sh
- script:
name: build
code: |
python3 setup.py bdist_wheel
/usr/local/python-3.5/bin/python setup.py bdist_wheel
/usr/local/python-3.6/bin/python setup.py bdist_wheel
cp build/lib.*/pyemoji.*.so .
- script:
name: test
Expand Down

0 comments on commit df9cc78

Please sign in to comment.