Skip to content

Commit

Permalink
Squash everything
Browse files Browse the repository at this point in the history
  • Loading branch information
ehhthing committed Jul 10, 2019
0 parents commit 6ffc4ae
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
sudo: required
language: c
dist: bionic
os:
- linux
- osx
before_install:
- chmod +x **/*.sh
- "./before_build_scripts/$TRAVIS_OS_NAME.sh"
script:
- cd ..
- git clone https://github.com/shadowsocks/shadowsocks-libev
- cd shadowsocks-libev
- RELEASE_NAME=$(git log -1 --pretty=%B | sed -E "s/(.{${1-40}}).*$/\1.../" | tr -d '\n')
- git submodule update --init --recursive
- "../shadowsocks-libev-builds/build_scripts/$TRAVIS_OS_NAME.sh"
- cd build/bin
- for file in *; do mv "$file" "${file}-${TRAVIS_OS_NAME}-$(uname -m)"; done
before_deploy:
- git config --local user.name "ehhthing"
- git config --local user.email "ehhthing@users.noreply.github.com"
- git tag $(git rev-parse --short HEAD)
branches:
only:
- master
deploy:
provider: releases
name: $RELEASE_NAME
body: Built based on commit $(git rev-parse HEAD)
file_glob: true
skip_cleanup: true
file: ss-*
api_key:
secure: NnUj1FCFx1bT80txF0+t14SNQxyfee4onHGbhiUdaNBlOi8ng9cL9c2DtwGkjUokjEYJD2DYbKUIE66GMf5jcyZ8sYNpDObygFNDrbl1TWNFzy8Rir8l56DtwTvBHcgqWvy4ukJ8pllkF/IGWiPjdp098BdcWslek35vH6448Q5ATp9lq/D8/6uIzO42IlYLXORmqGGngXHRxNpXWZvgypR5ic5TnUpbCCfZfcHttpfG/HQ9SwTeuzfFLzrLpoKtEOHOc62cll0z6oedNwzk9lZBN1H3THksAfCzSWWN+Jm2uMNX2Gi3RE3Y7cQ8y6PlNvhUNutZIc3jP8Ah1GzutPf+kJKGWK4POOFP3NZerLYUI0mWBbOZO6jDvtgURWT65EWuIpYYkYqSGPo8Oo54RDV6Prli4RaTDbpHMkHtp6BCNN+ghXINVcOVDz/KNfOtu/UPj0E1jZ5zfLVUhFWvwMrvYZ6fjGJQQmwSTYTf6W6JXGVt3COU1aOl7oOcl2slundaeRuIElIfK8nbobjc6axnntk0zO/WkkqS2N5j1J2gU/tXFrGpppYd5nwzBff1n5xXpl20IEaXaOeYURrw5ARyFJQ2weTErsSvowOPtvkkj2aw6hSuYW1LZAlU+infvu0Kst+hGp6rASoFND+9FulpXb3C8KvOUqWAS1DVdtQ=
on:
repo: ehhthing/shadowsocks-libev-builds
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# shadowsocks-libev binaries [![](https://travis-ci.com/ehhthing/shadowsocks-libev-builds.svg?branch=master)](https://travis-ci.com/ehhthing/shadowsocks-libev-builds)

Nightly builds of [shadowsocks-libev](https://github.com/shadowsocks/shadowsocks-libev), compiled for a variety of targets.

This repository has no affiliation with shadowsocks-libev, or any of its maintainers.

[Click here](https://github.com/ehhthing/shadowsocks-libev-builds/releases/latest) for the latest build.
3 changes: 3 additions & 0 deletions before_build_scripts/linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
sudo apt-get update
sudo apt-get install libc-ares-dev libev-dev asciidoc xmlto libmbedtls-dev libsodium-dev -y
2 changes: 2 additions & 0 deletions before_build_scripts/osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
brew reinstall autoconf automake xmlto c-ares libev mbedtls libsodium asciidoc >> /dev/null 2>&1;
7 changes: 7 additions & 0 deletions build_scripts/linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
./autogen.sh
./configure
make
cd build
cmake ../ -DCMAKE_EXE_LINKER_FLAGS=" -no-pie"
make
5 changes: 5 additions & 0 deletions build_scripts/osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
./autogen.sh
./configure --disable-documentation --with-mbedtls=/usr/local/opt/mbedtls --with-sodium=/usr/local/opt/libsodium
make
cd build && cmake ../ && make

0 comments on commit 6ffc4ae

Please sign in to comment.