Commit Graph

23 Commits

Author SHA1 Message Date
Tomas Kral
abf81926c0 Merge pull request #460 from ashetty1/openshift_up_down_test
Adding kompose up/down tests for openshift
2017-05-02 13:35:55 +02:00
Anush Shetty
1b3d876a62 Adding OpenShift functional tests for kompose up/down
* This PR adds functional tests for kompose up/down. The test scripts
are hosted under script/test_in_openshift. The directory structure,
as follows:

	script/test_in_openshift/
	├── compose-files
	│   └── docker-compose-command.yml
	├── lib.sh
	├── run.sh
	└── tests
		├── buildconfig.sh
    		├── entrypoint-command.sh
    		├── etherpad.sh
    		└── redis-replica-2.sh

* script/test_in_openshift/run.sh is the master script
  which executes all the tests

* script/test_in_openshift/lib.sh consists of helper functions
  for `kompose up` and `kompose down` checks

* script/test_in_openshift/tests directory consists of test scripts

* The scripts use 'oc cluster up' for setting up a single-machine
  OpenShift cluster. It exits if oc binaries are not installed

* Most of the docker compose files used are the ones already
  available in examples/ or script/test/fixtures.

* How to run the tests: 'make test-openshift'
2017-05-02 12:02:30 +05:30
Charlie Drage
6b32b938a6 Add test dependencies
This clears up .travis.yaml as well as adds the test dependencies when
running `make test` so the user running the tests has the most
up-to-date ones available.
2017-04-19 10:42:46 -04:00
Charlie Drage
fed0be319a Add ARM to make cross.
This adds a linux/arm build to Makefile which will be included in the
release.sh script.
2017-04-04 10:13:07 -04:00
Tomas Kral
3411f3c94b
do not fail if there is a golint violation
golint output is just suggestion. Just show ouptut, but don't fail.
This also remove unnecessary bash script that is no longer needed.
2017-03-17 17:09:49 +01:00
Tomas Kral
ac074e2c36
Update Makefile - lazy set for PKGS variable
Using lazy set we can run targets that are not requring PKGS without
requiring glide.
Lazy set is expended when variable is used, not when declared.
2017-02-14 10:43:30 +01:00
Tomas Kral
18955c63d4
fix passing gitcommit in version output 2017-02-11 17:05:08 +01:00
Charlie Drage
b19e973549 Updates the cross compiling commands
Removed 32-Bit support, and pushes to the "bin" folder instead of
"bundles"
2017-01-27 15:57:40 -05:00
Tomas Kral
0b1b7f3c35
Rename some make targests: test->test-container test-all->test 2017-01-23 15:05:25 +01:00
Tomas Kral
20b844d6e9
Clean up Makefile and scripts in scripts dir.
If command is simple command call it from Makefile,
there is no need to have them in separate shell scripts.
2017-01-23 11:49:25 +01:00
Tomas Kral
f68be75d60
Add make rules for building and running test image 2017-01-23 11:49:24 +01:00
Tomas Kral
502157a078
add golint to make validate and install it in travis 2017-01-05 09:56:24 +01:00
Tomas Kral
a0ba435efb
Add check-vendor script
This checks vendor dir for nested vendors
and if vendor has been cleaned by glide-vc
2016-12-07 19:57:47 +01:00
Tomas Kral
373ab36946
Report code coverage to coveralls 2016-12-07 16:44:47 +01:00
Charlie Drage
c87e6cdaf5 Switch to 'make bin' instead of 'make binary'
I keep mistyping this when creating the binary as per other projects
that use it commonly (it's usually `make bin` instead of `make binary`).
2016-11-29 09:56:43 -05:00
Tomas Kral
8bb89876cf
Clean up scripts/validate-*. Add vet,gofmt,lint tests.
Travis now runs `make validate` as first test.
Make validate includes all validate tests (go vet, gofmt)
2016-11-22 13:02:13 +01:00
Tuna
238dc75175 update main.go path for cross build
fix #256
2016-10-31 00:14:29 +01:00
Tuna
592cc95907 upgrade libcompose to fbdac0a6a80837c63eb6c8f43514f7bb3f32df6c 2016-10-09 02:35:51 +02:00
Tomas Kral
6099428364 add test targets to Makefile 2016-08-11 11:00:07 +02:00
Tomas Kral
3dd7689364 Move binary target to binary-cross
use binary target only for building for current platform
2016-08-11 11:00:07 +02:00
Janet Kuo
daf8b80ef6 Remove 'make clean' 2016-08-10 17:37:26 -07:00
Janet Kuo
6164f0ac24 Build statically linked binaries in makefile 2016-08-10 17:37:06 -07:00
ngtuna
5ae9588fac add Makefile 2016-06-30 18:05:10 +00:00