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
|
||||
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-5
|
||||
- gcc-5
|
||||
|
||||
go:
|
||||
- 1.5
|
||||
- 1.6
|
||||
|
||||
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:
|
||||
- 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
|
||||
|
||||
before_script:
|
||||
npm install -g coffee-script coffeelint jasmine
|
||||
- go get -u github.com/keroserene/go-webrtc
|
||||
- go get -u git.torproject.org/pluggable-transports/goptlib.git
|
||||
- pushd proxy
|
||||
- npm install
|
||||
- popd
|
||||
|
||||
script:
|
||||
- make check
|
||||
- go test -v -race ./broker
|
||||
- go test -v -race ./broker ./client
|
||||
- cd proxy
|
||||
- cake lint
|
||||
- cake test
|
||||
- npm run-script lint
|
||||
- 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