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 - master
- tip - tip
node_js:
- lts/*
os: os:
- linux - linux
- osx - 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: script:
- cd dnsfilter && go get -d -t . && go test - cd dnsfilter && go get -d -t . && go test
- cd ../coredns_plugin && 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 build: AdguardDNS coredns
$(STATIC): $(STATIC):
yarn --cwd client install cd client; npm install
yarn --cwd client run build-prod cd client; npm run build-prod
AdguardDNS: $(STATIC) *.go AdguardDNS: $(STATIC) *.go
echo mkfile_dir = $(mkfile_dir) 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", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"build-dev": "NODE_ENV=development webpack --config webpack.dev.js", "build-dev": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js",
"watch": "NODE_ENV=development webpack --config webpack.dev.js --watch", "watch": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js --watch",
"build-prod": "NODE_ENV=production webpack --config webpack.prod.js", "build-prod": "NODE_ENV=production ./node_modules/.bin/webpack --config webpack.prod.js",
"lint": "eslint frontend/" "lint": "eslint frontend/"
}, },
"dependencies": { "dependencies": {

File diff suppressed because it is too large Load Diff