Travis -- fix build on OSX, simplify travis and get rid of yarn

This commit is contained in:
Konstantin Zamyakin 2018-08-31 18:11:45 +03:00 committed by hmage
parent 3af62e463a
commit c4fefa10b0
5 changed files with 16602 additions and 9639 deletions

View File

@ -6,18 +6,10 @@ go:
- master
- tip
node_js:
- lts/*
os:
- linux
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi
script:
- cd dnsfilter && go get -d -t . && go test
- cd ../coredns_plugin && go get -d -t . && go test

View File

@ -12,8 +12,8 @@ all: build
build: AdguardDNS coredns
$(STATIC):
yarn --cwd client install
yarn --cwd client run build-prod
cd client; npm install
cd client; npm run build-prod
AdguardDNS: $(STATIC) *.go
echo mkfile_dir = $(mkfile_dir)

16597
client/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"build-dev": "NODE_ENV=development webpack --config webpack.dev.js",
"watch": "NODE_ENV=development webpack --config webpack.dev.js --watch",
"build-prod": "NODE_ENV=production webpack --config webpack.prod.js",
"build-dev": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js",
"watch": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js --watch",
"build-prod": "NODE_ENV=production ./node_modules/.bin/webpack --config webpack.prod.js",
"lint": "eslint frontend/"
},
"dependencies": {

File diff suppressed because it is too large Load Diff