Travis -- fix build on OSX, simplify travis and get rid of yarn
This commit is contained in:
parent
3af62e463a
commit
c4fefa10b0
|
@ -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
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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": {
|
||||||
|
|
9626
client/yarn.lock
9626
client/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue