diff --git a/.drone.yml b/.drone.yml index 30958525..d6b1efef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,8 @@ env: - PATH=$PATH:$GOROOT/bin:$GOPATH/bin script: - - sudo apt-get -y -qq update - - sudo apt-get -y -qq install libsqlite3-dev + - bin/bash contrib/setup-sqlite.sh 1> /dev/null + - bin/bash contrib/setup-sassc.sh 1> /dev/null - make deps - make - make test diff --git a/contrib/setup-sassc.sh b/contrib/setup-sassc.sh new file mode 100755 index 00000000..274400aa --- /dev/null +++ b/contrib/setup-sassc.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e + +cd /tmp + +rm -rf libsass +rm -rf sassc + +git clone --depth=1 git://github.com/sass/libsass.git +git clone --depth=1 git://github.com/sass/sassc.git + +export SASS_LIBSASS_PATH=/tmp/libsass + +cd sassc +make +sudo make install \ No newline at end of file diff --git a/contrib/setup-sqlite.sh b/contrib/setup-sqlite.sh old mode 100644 new mode 100755 index 1a13c7af..bd708713 --- a/contrib/setup-sqlite.sh +++ b/contrib/setup-sqlite.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cd /tmp @@ -8,4 +9,4 @@ cd sqlite-autoconf-3081101 cd sqlite-3.6.421 ./configure -prefix=/scratch/usr/local make -make install +sudo make install