@@ -1,6 +1,30 @@ | |||||
sudo: required | sudo: required | ||||
language: cpp | language: cpp | ||||
before_install: sudo apt-get update | |||||
install: ./install.sh | |||||
script: ant test | |||||
after_script: ./uninstall.sh | |||||
matrix: | |||||
include: | |||||
# works on Precise and Trusty | |||||
- os: linux | |||||
addons: | |||||
apt: | |||||
sources: | |||||
- ubuntu-toolchain-r-test | |||||
packages: | |||||
- g++-6 | |||||
env: | |||||
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" | |||||
- os: osx | |||||
osx_image: xcode8 | |||||
env: | |||||
- MATRIX_EVAL="brew cask uninstall oclint && brew install gcc@6 && CC=gcc-6 && CXX=g++-6" | |||||
before_install: | |||||
- eval "${MATRIX_EVAL}" | |||||
install: | |||||
- ./install.sh | |||||
script: | |||||
- ant test | |||||
after_script: | |||||
- ./uninstall.sh | |||||
after_success: | |||||
- bash <(curl -s https://codecov.io/bash) |
@@ -1,5 +1,11 @@ | |||||
sudo apt-get update | |||||
sudo apt-get install libjsoncpp-dev | |||||
if [ $(uname) == "Darwin" ]; then | |||||
brew install ant | |||||
brew install jsoncpp | |||||
else | |||||
sudo apt-get update | |||||
sudo apt-get install libjsoncpp-dev | |||||
fi | |||||
cp lib/anttasks.jar ~ | cp lib/anttasks.jar ~ | ||||
pushd ~ | pushd ~ | ||||
jar xf anttasks.jar | jar xf anttasks.jar | ||||
@@ -1,5 +0,0 @@ | |||||
brew install jsoncpp | |||||
cp lib/anttasks.jar ~ | |||||
pushd ~ | |||||
jar xf anttasks.jar | |||||
pushd -0 |
@@ -1,6 +0,0 @@ | |||||
brew uninstall jsoncpp | |||||
cd ../ | |||||
echo "Deleting project files" | |||||
rm -rf TicketingSystem | |||||
echo "Removing additional installed library" | |||||
rm -rf ~/anttasks.jar |
@@ -1,4 +1,10 @@ | |||||
sudo apt-get remove --purge libjsoncpp-dev | |||||
if [ $(uname) == "Darwin" ]; then | |||||
brew uninstall jsoncpp | |||||
brew uninstall ant | |||||
else | |||||
sudo apt-get remove --purge libjsoncpp-dev | |||||
fi | |||||
cd ../ | cd ../ | ||||
echo "Deleting project files" | echo "Deleting project files" | ||||
rm -rf TicketingSystem | rm -rf TicketingSystem | ||||