mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Run client tests in travis too
This commit is contained in:
parent
3339b9f172
commit
9867730e34
2 changed files with 49 additions and 13 deletions
32
.travis.yml
32
.travis.yml
|
@ -1,22 +1,36 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- g++-5
|
||||||
|
- gcc-5
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.5
|
|
||||||
- 1.6
|
- 1.6
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TRAVIS_NODE_VERSION="4.1"
|
- TRAVIS_NODE_VERSION="4.2" CC="gcc-5" CXX="g++-5"
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- nvm install $TRAVIS_NODE_VERSION
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
|
|
||||||
- go get -u github.com/smartystreets/goconvey
|
- go get -u github.com/smartystreets/goconvey
|
||||||
|
- go get -u github.com/keroserene/go-webrtc
|
||||||
before_script:
|
- go get -u git.torproject.org/pluggable-transports/goptlib.git
|
||||||
npm install -g coffee-script coffeelint jasmine
|
- pushd proxy
|
||||||
|
- npm install
|
||||||
|
- popd
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make check
|
- make check
|
||||||
- go test -v -race ./broker
|
- go test -v -race ./broker ./client
|
||||||
- cd proxy
|
- cd proxy
|
||||||
- cake lint
|
- npm run-script lint
|
||||||
- cake test
|
- npm test
|
||||||
|
|
22
proxy/package.json
Normal file
22
proxy/package.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"name": "snowflake-pt",
|
||||||
|
"version": "0.0.0-git",
|
||||||
|
"description": "WebRTC Pluggable Transport",
|
||||||
|
"main": "snowflake.coffee",
|
||||||
|
"directories": {
|
||||||
|
"test": "test"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "cake test",
|
||||||
|
"lint": "cake lint"
|
||||||
|
},
|
||||||
|
"author": "Serene Han",
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"devDependencies": {
|
||||||
|
"coffeelint": "^1.15.0",
|
||||||
|
"jasmine": "^2.4.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"coffee-script": "^1.10.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue