Skip to content

Commit

Permalink
Travis: Fix ccache and upload sha256 sum (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcorion authored and Nekotekina committed May 20, 2018
1 parent 469f546 commit 4c720fb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
language: c++

cache:
ccache: true
directories:
- $HOME/homebrew_cache
cache: ccache

before_script:
- mkdir build ; cd build
- CC=clang CXX=clang++ CXXFLAGS="-msse -msse2" cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="" -DLLVM_CCACHE_BUILD=ON -DLLVM_ENABLE_CXX1Y=ON -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_RUNTIME=OFF -DLLVM_BUILD_TOOLS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_TOOLS=OFF -DLLVM_INCLUDE_UTILS=OFF -DWITH_POLLY=OFF
- CC=clang CXX=clang++ CXXFLAGS="-msse -msse2" cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="" -DLLVM_CCACHE_DIR=$HOME/.ccache -DLLVM_CCACHE_BUILD=ON -DLLVM_ENABLE_CXX1Y=ON -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_RUNTIME=OFF -DLLVM_BUILD_TOOLS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_TOOLS=OFF -DLLVM_INCLUDE_UTILS=OFF -DWITH_POLLY=OFF

script:
- ninja -j 2
Expand All @@ -16,9 +13,10 @@ after_script:
- DESTDIR=./dest ninja install
- cd dest
- tar -czf llvmlibs-linux.tar.gz lib include bin
- sha256sum ./llvmlibs-linux.tar.gz | awk '{ print $1}' >> llvmlibs-linux.tar.gz.sha256
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- export UPLOADTOOL_SUFFIX=linux-release_60
- bash upload.sh ./llvmlibs-linux.tar.gz
- bash upload.sh ./llvmlibs-linux*
addons:
apt:
sources:
Expand Down

0 comments on commit 4c720fb

Please sign in to comment.