Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Oct 18, 2018
1 parent 819ae0c commit a5e92e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,38 @@ pipeline:
- ./build/drone/create_release.sh
when:
event: tag
build_ubuntu_oss:
build_ubuntu:
image: ubuntu:xenial
environment:
- CPPFLAGS=-P
- PHAROS_NON_OSS=true
commands:
- ./build/drone/ubuntu_oss.sh
- ./build/drone/ubuntu.sh
when:
event: tag
release_binary_oss:
release_binary:
image: plugins/s3
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: pharos-cluster-binaries
region: eu-west-1
source: "pharos-cluster-linux-amd64-${DRONE_TAG##v}+oss"
source: "pharos-cluster-linux-amd64-${DRONE_TAG##v}"
target: /
when:
event: tag
build_ubuntu:
build_ubuntu_oss:
image: ubuntu:xenial
environment:
- CPPFLAGS=-P
- PHAROS_NON_OSS=true
commands:
- ./build/drone/ubuntu.sh
- ./build/drone/ubuntu_oss.sh
when:
event: tag
release_binary:
release_binary_oss:
image: plugins/s3
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: pharos-cluster-binaries
region: eu-west-1
source: "pharos-cluster-linux-amd64-${DRONE_TAG##v}"
source: "pharos-cluster-linux-amd64-${DRONE_TAG##v}+oss"
target: /
when:
event: tag
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stages:
jobs:
include:
- stage: publish binary
script: ./build/travis/macos_oss.sh
script: ./build/travis/macos.sh
rvm: 2.4
os: osx
deploy:
Expand All @@ -27,7 +27,7 @@ jobs:
on:
all_branches: true
- stage: publish binary
script: ./build/travis/macos.sh
script: ./build/travis/macos_oss.sh
rvm: 2.4
os: osx
deploy:
Expand Down
2 changes: 1 addition & 1 deletion build/drone/ubuntu_oss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -ue
apt-get update -y
apt-get install -y -q squashfs-tools build-essential ruby bison ruby-dev git-core texinfo curl

git rm -r non-oss/
rm -rf non-oss/

# build binary
curl -sL https://dl.bintray.com/kontena/ruby-packer/0.5.0-dev/rubyc-linux-amd64.gz | gunzip > /usr/local/bin/rubyc
Expand Down
2 changes: 1 addition & 1 deletion build/travis/macos_oss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ue

git rm -r non-oss/
rm -rf non-oss/

brew install squashfs
curl -sL https://dl.bintray.com/kontena/ruby-packer/0.5.0-dev/rubyc-darwin-amd64.gz | gunzip > /usr/local/bin/rubyc
Expand Down

0 comments on commit a5e92e7

Please sign in to comment.